18 #ifndef PIC_FILTERING_FILTER_RECONSTRUCT_HPP 19 #define PIC_FILTERING_FILTER_RECONSTRUCT_HPP 21 #include "../util/array.hpp" 23 #include "../filtering/filter.hpp" 39 int channels = src[0]->channels;
41 for(
int j = box->
y0; j < box->y1; j++) {
43 for(
int i = box->
x0; i < box->x1; i++) {
44 float *tmp_ann = (*src[1])(i, j);
45 int x = int(tmp_ann[0]);
46 int y = int(tmp_ann[1]);
48 float *tmp_dst = (*dst)(i, j);
49 float *tmp_src = (*src[0])(x, y);
75 width = imgIn[1]->width;
76 height = imgIn[1]->height;
77 channels = imgIn[1]->channels;
78 frames = imgIn[1]->frames;
The BBox class manages the creation of bounding boxes for images.
Definition: bbox.hpp:29
virtual void OutputSize(ImageVec imgIn, int &width, int &height, int &channels, int &frames)
OutputSize.
Definition: filter_reconstruct.hpp:73
std::vector< Image * > ImageVec
ImageVec an std::vector of pic::Image.
Definition: image_vec.hpp:29
int x0
Definition: bbox.hpp:32
static Image * execute(Image *imgIn, Image *ann, Image *imgOut=NULL)
execute
Definition: filter_reconstruct.hpp:88
FilterReconstruct()
FilterReconstruct.
Definition: filter_reconstruct.hpp:60
The Filter class.
Definition: filter.hpp:50
virtual Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter.hpp:390
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
int minInputImages
Definition: filter_radial_basis_function.hpp:56
void ProcessBBox(Image *dst, ImageVec src, BBox *box)
ProcessBBox.
Definition: filter_reconstruct.hpp:37
Definition: filter_reconstruct.hpp:27
The Image class stores an image as buffer of float.
Definition: image.hpp:60
Definition: bilateral_separation.hpp:25
static T * assign(T *data, int size, T *ret)
assign
Definition: array.hpp:464