25 #include <Base/Common/BIASpragmaStart.hh>
27 #ifndef __RectificationViaProjectionMappingBase_hh__
28 #define __RectificationViaProjectionMappingBase_hh__
30 #include <Image/RectificationBase.hh>
31 #include <Image/BackwardMapping.hh>
32 #include <Image/ProjectionMapping.hh>
50 template<
class InputStorageType,
class OutputStorageType>
52 InputStorageType, OutputStorageType>
59 const double& Scale = 1.0);
69 rectificationParamsAreValid_ =
false;
147 GetRectifyingDisplacementMaps(
Image<float>& displacementA,
169 SetOverrideAngles(
double thetaMinOverride,
double thetaMaxOverride,
170 double phiMinOverride,
double phiMaxOverride);
184 SetTargetWidth(
unsigned int targetWidth);
191 UseLookUpTables(
bool use);
205 DetermineRectificationParameters_() = 0;
209 DetermineScaledRectificationParameters_();
232 AreRectificationParametersValid_();
275 InitializeMapping_();
277 InitializeSinkImages_();
279 InitializeProjectionMappingObjects_();
311 #include <Base/Common/BIASpragmaEnd.hh>
InterpolationMethod
accuracy for resampling
Base class for rectification implementations that make use of projections to represent rectified stat...
double phiMinOverride_
Value used to override phiMin result of automatic fov calculation if phiMinOverride_ is larger...
double scale_
scale computed rectification resolution by this amount
double thetaMaxOverride_
Value used to override thetaMax result of automatic fov calculation if thetaMaxOverride_ is smaller...
unsigned int targetWidth_
if this value is greater zero the scale the computed rectification parameters are isotropically scale...
Maps source pixel to sink pixel of given projections.
base class for rectification implementations and wrappers
std::string stringID_
Descriptive identifier of the classes in the hierarchy.
ProjectionParametersBase * rectPPA_
Projection parameters of the rectified image A.
const std::string & GetStringID() const
Returns the string id that identifies the rctification classes in this hierarchy. ...
InterpolationMethod interpolationType_
void SetScale(const double &scale)
Scale factor for isotropically scaling the rectified images (and rectified intrinsic parameters)...
bool rectificationParamsAreValid_
Flag is true when DetermineRectificationParameters_() was succesfull and no setter was called afterwa...
bool useLookUpTables_
Toggles the use of lookup tables.
void SetSecondFill(OutputStorageType d)
fill color for second image (first is black)
OutputStorageType secondFill_
bool mappingInitialized_
Tells whether the lut structure and the result images have been initialized.
double phiMaxOverride_
Value used to override phiMax result of automatic fov calculation if phiMaxOverride_ is smaller...
ProjectionMapping< InputStorageType, OutputStorageType > rectMapperA_
Classes holding rectification parameters and performing mapping.
Camera parameters which define the mapping between rays in the camera coordinate system and pixels in...
ProjectionMapping< InputStorageType, OutputStorageType > rectMapperB_
ProjectionParametersBase * rectPPB_
Projection parameters of the rectified image B.
double thetaMinOverride_
Value used to override thetaMin result of automatic fov calculation if thetaMinOverride_ is larger...