18 #ifndef PIC_FILTERING_FILTER_MED_HPP 19 #define PIC_FILTERING_FILTER_MED_HPP 21 #include "../filtering/filter.hpp" 44 for(
int j = box->
y0; j < box->y1; j++) {
45 for(
int i = box->
x0; i < box->x1; i++) {
51 float *color = (*in)(i + l, j + k);
53 for(
int ch = 0; ch < in->
channels; ch++) {
61 float *out = (*dst) (i, j);
63 for(
int ch = 0; ch < in->
channels; ch++) {
93 this->areaKernel = size * size;
The BBox class manages the creation of bounding boxes for images.
Definition: bbox.hpp:29
int checkHalfSize(int size)
checkHalfSize
Definition: filter_radial_basis_function.hpp:168
int channels
Definition: image.hpp:80
std::vector< Image * > ImageVec
ImageVec an std::vector of pic::Image.
Definition: image_vec.hpp:29
int x0
Definition: bbox.hpp:32
The Filter class.
Definition: filter.hpp:50
int halfSize
Definition: filter_med.hpp:31
virtual Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter.hpp:390
int midValue
Definition: filter_med.hpp:31
void update(int size)
update
Definition: filter_med.hpp:89
int y0
Definition: bbox.hpp:32
void ProcessBBox(Image *dst, ImageVec src, BBox *box)
ProcessBBox.
Definition: filter_med.hpp:39
FilterMed(int size)
FilterMed.
Definition: filter_med.hpp:80
The Image class stores an image as buffer of float.
Definition: image.hpp:60
PIC_INLINE ImageVec Single(Image *img)
Single creates an std::vector which contains img; this is for filters input.
Definition: image_vec.hpp:36
Definition: bilateral_separation.hpp:25
static Image * execute(Image *imgIn, Image *imgOut, int size)
execute
Definition: filter_med.hpp:104
int areaKernel
Definition: filter_med.hpp:31
The FilterMed class.
Definition: filter_med.hpp:28