18 #ifndef PIC_FILTERING_FILTER_NEAREST_NEIGHBORS_HPP 19 #define PIC_FILTERING_FILTER_NEAREST_NEIGHBORS_HPP 21 #include "../features_matching/patch_comp.hpp" 22 #include "../filtering/filter.hpp" 48 float tmp_d =
pc->
getSSD(data->
x, data->
y, j, i);
57 data->
out[0] = float(xb);
58 data->
out[1] = float(yb);
104 width = imgIn[0]->width;
105 height = imgIn[0]->height;
107 frames = imgIn[0]->frames;
int y
Definition: filter.hpp:39
T * delete_s(T *data)
delete_s
Definition: std_util.hpp:123
std::vector< Image * > ImageVec
ImageVec an std::vector of pic::Image.
Definition: image_vec.hpp:29
int stride
Definition: filter_nearest_neighbors.hpp:34
int halfPatchSize
Definition: filter_nearest_neighbors.hpp:34
The Filter class.
Definition: filter.hpp:50
void OutputSize(ImageVec imgIn, int &width, int &height, int &channels, int &frames)
OutputSize.
Definition: filter_nearest_neighbors.hpp:102
Definition: filter.hpp:37
void setup(int patchSize, int stride)
setup
Definition: filter_nearest_neighbors.hpp:115
The PatchComp class.
Definition: patch_comp.hpp:36
float * out
Definition: filter.hpp:40
float getSSD(int x0, int y0, int x1, int y1)
getSSD
Definition: patch_comp.hpp:177
int height_ps
Definition: filter_nearest_neighbors.hpp:35
Image * setupAux(ImageVec imgIn, Image *imgOut)
setupAux
Definition: filter_nearest_neighbors.hpp:68
int width_ps
Definition: filter_nearest_neighbors.hpp:35
int minInputImages
Definition: filter_radial_basis_function.hpp:56
int x
Definition: filter.hpp:39
Image * allocateOutputMemory(ImageVec imgIn, Image *imgOut, bool bDelete)
allocateOutputMemory
Definition: filter_radial_basis_function.hpp:217
The FilterNearestNeighbors class.
Definition: filter_nearest_neighbors.hpp:29
int patchSize
Definition: filter_nearest_neighbors.hpp:34
~FilterNearestNeighbors()
Definition: filter_nearest_neighbors.hpp:89
The Image class stores an image as buffer of float.
Definition: image.hpp:60
Definition: bilateral_separation.hpp:25
PatchComp * pc
Definition: filter_nearest_neighbors.hpp:33
bool bDelete
Definition: filter_radial_basis_function.hpp:120
void f(FilterFData *data)
f
Definition: filter_nearest_neighbors.hpp:41
FilterNearestNeighbors()
FilterNearestNeighbors.
Definition: filter_nearest_neighbors.hpp:83