25 #ifndef __ConstantRegionDetector_hh__
26 #define __ConstantRegionDetector_hh__
28 #include <Base/Image/Image.hh>
29 #include <Base/Geometry/HomgPoint2D.hh>
38 template<
class StorageType>
39 class BIASFeatureDetector_EXPORT
ColFeat {
45 bool operator<(const ColFeat<StorageType>& r)
const
49 { x=f.
x; y=f.
y; val=f.
val; col = f.
col;
return *
this; }
65 template<
class StorageType,
class CalculationType>
73 threshold_ = threshold;
80 halfWinSize_ = halfWinSize;
91 minDistance_ = minDistance;
98 maxNumFeatures_ = maxNumFeatures;
102 return maxNumFeatures_;
116 std::vector<HomgPoint2D>& points2d, std::vector<
Vector3<
117 StorageType> >& colors,
bool useMedian =
false);
137 #endif // __ConstantRegionDetector_hh__
int minDistance_
required min distance between two constance regions
void SetMaskImage(BIAS::Image< unsigned char > &maskImg)
BIAS::Image< unsigned char > maskImg_
mask image usefull for water regions in images which usually have very constant regions compared to t...
void SetThreshold(CalculationType threshold)
void SetMinDistance(int minDistance)
CalculationType threshold_
void SetMaxNumFeatures(int maxNumFeatures)
restrict maximum number of features -1 is default and all features are returned.
int maxNumFeatures_
restrict maximum number of features -1 is default and all features are returned.
void SetHalfWinSize(int halfWinSize)
detects regions with close to zero gradients in images, works on color images only ...
internal class for feature (with color) passing only
ColFeat< StorageType > & operator=(const ColFeat< StorageType > &f)
CalculationType GetThreshold()
BIAS::Vector3< StorageType > col
std::vector< ColFeat< StorageType > > featureList_