1 #ifndef _FORWARDMAPPINGNEARESTNEIGHBOUR_HH_
2 #define _FORWARDMAPPINGNEARESTNEIGHBOUR_HH_
4 #include <Base/Common/BIASpragmaStart.hh>
5 #include <Base/Image/Image.hh>
6 #include <Geometry/Projection.hh>
10 template <
class InputStorageType,
class OutputStorageType>
29 const unsigned int dTexChannels = 1) {
30 dTexChannels_ = dTexChannels;
34 if (intermediate_.IsEmpty())
35 intermediate_.Init(dTargetWidth_,
37 if (intermediateTex_.IsEmpty())
38 intermediateTex_.Init(dTargetWidth_, dTargetHeight_,
53 fillAreaWindowSize_ = size;
62 int ulx_,
uly_, lrx_, lry_;
69 unsigned int GetSummedValue_(
const OutputStorageType* pixel);
70 void SetValue_(
const OutputStorageType* in, OutputStorageType* out);
76 #include <Base/Common/BIASpragmaEnd.hh>
void SetFillAreaWindowSize(unsigned int size)
unsigned int dTargetWidth_
unsigned int dTexChannels_
void SetSourceCam(const Projection &P)
class HomgPoint2D describes a point with 2 degrees of freedom in projective coordinates.
BIAS::Projection SourceP_
unsigned int dSourceWidth_
unsigned int fillAreaWindowSize_
const ProjectionParametersBase * GetParameters(unsigned int cam=0) const
const parameter access function
This class hides the underlying projection model, like projection matrix, spherical camera...
virtual int GetImageSize(unsigned int &Width, unsigned int &Height) const
Obtain image dimensions.
BIAS::Image< OutputStorageType > intermediateTex_
BIAS::HomgPoint2D boundMinWrap_
void SetSinkCam(const Projection &P, const unsigned int dTexChannels=1)
void GetROI(BIAS::HomgPoint2D &UL, BIAS::HomgPoint2D &LR)
BIAS::Image< OutputStorageType > intermediate_