9 #ifndef TRangeImageFilter_H 10 #define CObservation3DRangeScan_H 66 if (D <= .0f)
return false;
68 bool pass_gt =
true, pass_lt =
true;
69 bool has_min_filter =
false, has_max_filter =
false;
75 has_min_filter =
true;
76 pass_gt = (D >= min_d);
84 has_max_filter =
true;
85 pass_lt = (D <= max_d);
88 if (has_min_filter && has_max_filter)
91 : !(pass_gt && pass_lt);
94 return pass_gt && pass_lt;
Mainly for internal use within CObservation3DRangeScan::project3DPointsFromDepthImageInto() ...
const mrpt::math::CMatrix * rangeMask_min
(Default: nullptr) If provided, each data range will be tested to be greater-than (rangeMask_min) or ...
TRangeImageFilterParams()
Used in CObservation3DRangeScan::project3DPointsFromDepthImageInto()
TRangeImageFilter(const TRangeImageFilterParams &filter_params)
TRangeImageFilterParams fp
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLdouble GLdouble GLdouble r
const mrpt::math::CMatrix * rangeMask_max
This class is a "CSerializable" wrapper for "CMatrixFloat".
bool do_range_filter(size_t r, size_t c, const float D) const
Returns true if the point (r,c) with depth D passes all filters.
bool rangeCheckBetween
Only used if both rangeMask_min and rangeMask_max are present.