18 #ifndef PIC_FILTERING_FILTER_NOISE_ESTIMATION_HPP 19 #define PIC_FILTERING_FILTER_NOISE_ESTIMATION_HPP 21 #include "../util/math.hpp" 23 #include "../filtering/filter.hpp" 25 #include "../filtering/filter_conv_2d.hpp" 108 ret =
new float[imgNoise->
channels];
The BBox class manages the creation of bounding boxes for images.
Definition: bbox.hpp:29
int channels
Definition: image.hpp:80
FilterConv2D flt
Definition: filter_noise_estimation.hpp:35
std::vector< Image * > ImageVec
ImageVec an std::vector of pic::Image.
Definition: image_vec.hpp:29
int x0
Definition: bbox.hpp:32
float * getMeanVal(BBox *box, float *ret)
getMeanVal computes the mean for the current Image.
FilterNoiseEstimation()
FilterNoiseEstimation.
Definition: filter_noise_estimation.hpp:45
The Filter class.
Definition: filter.hpp:50
The FilterNoiseEstimation class.
Definition: filter_noise_estimation.hpp:32
virtual Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter.hpp:390
float * data
Definition: filter_noise_estimation.hpp:37
~FilterNoiseEstimation()
Definition: filter_noise_estimation.hpp:64
static float * getNoiseEstimation(Image *img, Image *imgNoise, float *ret)
getNoiseEstimation
Definition: filter_noise_estimation.hpp:129
int y0
Definition: bbox.hpp:32
PIC_INLINE ImageVec Double(Image *img1, Image *img2)
Double creates an std::vector which contains img1 and img2; this is for filters input.
Definition: image_vec.hpp:49
PIC_INLINE float square(float x)
Square applies square function to a value.
Definition: math.hpp:188
The FilterConv2D class.
Definition: filter_conv_2d.hpp:30
Image * img_conv
Definition: filter_noise_estimation.hpp:36
void applyFunction(float(*func)(float))
applyFunction is an operator that applies an input function to all values in data.
int x1
Definition: bbox.hpp:32
The Image class stores an image as buffer of float.
Definition: image.hpp:60
int y1
Definition: bbox.hpp:32
static float * getNoiseEstimation(Image *imgNoise, float *ret)
getNoiseEstimation
Definition: filter_noise_estimation.hpp:105
PIC_INLINE ImageVec Single(Image *img)
Single creates an std::vector which contains img; this is for filters input.
Definition: image_vec.hpp:36
Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter_noise_estimation.hpp:81
Definition: bilateral_separation.hpp:25
static Image * execute(Image *imgIn, Image *imgOut)
execute
Definition: filter_noise_estimation.hpp:146
bool checkInput(ImageVec &imgIn)
checkInput
Definition: filter.hpp:385
BBox getFullBox()
getFullBox computes a full BBox for this image.
static Image * execute(Image *img, Image *conv, Image *imgOut)
execute
Definition: filter_conv_2d.hpp:89