18 #ifndef PIC_FILTERING_FILTER_MAX_HPP 19 #define PIC_FILTERING_FILTER_MAX_HPP 21 #include "../filtering/filter.hpp" 43 for(
int j = box->
y0; j < box->y1; j++) {
44 for(
int i = box->
x0; i < box->x1; i++) {
46 float *dst_data = (*dst)(i, j);
47 float *src_data = (*src[0])(i, j);
49 for(
int k = 0; k < channels; k++) {
50 dst_data[k] = src_data[k];
56 src_data = (*src[0])(i + l, j + k);
58 for(
int ch = 0; ch < channels; ch++) {
59 dst_data[ch] = dst_data[ch] > src_data[ch] ?
60 dst_data[ch] : src_data[ch];
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
void ProcessBBox(Image *dst, ImageVec src, BBox *box)
ProcessBBox.
Definition: filter_max.hpp:39
The Filter class.
Definition: filter.hpp:50
virtual Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter.hpp:390
~FilterMax()
Definition: filter_max.hpp:80
int y0
Definition: bbox.hpp:32
static Image * execute(Image *imgIn, Image *imgOut, int size)
execute
Definition: filter_max.hpp:101
The FilterMax class.
Definition: filter_max.hpp:28
virtual void release()
release
Definition: filter_radial_basis_function.hpp:142
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
FilterMax(int size)
FilterMax.
Definition: filter_max.hpp:75
void update(int size)
update
Definition: filter_max.hpp:89
int halfSize
Definition: filter_max.hpp:31