Basic Image AlgorithmS Library
2.8.0
|
detects regions with close to zero gradients in images, works on color images only More...
#include <FeatureDetector/ConstantRegionDetector.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
ConstantRegionDetector () | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
virtual int | Detect (Image< StorageType > &src, std::vector< HomgPoint2D > &points2d, std::vector< Vector3< StorageType > > &colors, bool useMedian=false) |
Detects constant regions in image src. More... | |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
int | GetHalfWinSize () |
int | GetMaxNumFeatures () |
CalculationType | GetThreshold () |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | SetHalfWinSize (int halfWinSize) |
void | SetMaskImage (BIAS::Image< unsigned char > &maskImg) |
void | SetMaxNumFeatures (int maxNumFeatures) |
restrict maximum number of features -1 is default and all features are returned. More... | |
void | SetMinDistance (int minDistance) |
void | SetThreshold (CalculationType threshold) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
virtual | ~ConstantRegionDetector () |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
std::vector< ColFeat < StorageType > > | featureList_ |
int | halfWinSize_ |
BIAS::Image< unsigned char > | maskImg_ |
mask image usefull for water regions in images which usually have very constant regions compared to the rest of the image (set to one if water/ to to be used) More... | |
int | maxNumFeatures_ |
restrict maximum number of features -1 is default and all features are returned. More... | |
int | minDistance_ |
required min distance between two constance regions More... | |
CalculationType | threshold_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
detects regions with close to zero gradients in images, works on color images only
Definition at line 66 of file ConstantRegionDetector.hh.
ConstantRegionDetector::ConstantRegionDetector | ( | ) |
Definition at line 40 of file ConstantRegionDetector.cpp.
|
virtual |
Definition at line 49 of file ConstantRegionDetector.cpp.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
|
virtual |
Detects constant regions in image src.
Constant regions around pixels in images are detected by a histogram-based method, that is applied to windows around the pixel in question. The differences in color are compared. threshold is the allowed average deviation from the color of the middle pixel. halfWinSize the size of the window used for detection. if useMedian is set to true, the input image will be filtered by a median filter first. The result is written into a vector with homogenuous 2D points and a segmentation image.
Definition at line 53 of file ConstantRegionDetector.cpp.
References BIAS::ColFeat< StorageType >::col, BIAS::Median< InputStorageType, OutputStorageType >::FilterColorImg(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), BIAS::Median< InputStorageType, OutputStorageType >::SetSize(), BIAS::ColFeat< StorageType >::val, BIAS::ColFeat< StorageType >::x, and BIAS::ColFeat< StorageType >::y.
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
Definition at line 82 of file ConstantRegionDetector.hh.
|
inline |
Definition at line 101 of file ConstantRegionDetector.hh.
|
inline |
Definition at line 75 of file ConstantRegionDetector.hh.
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
Definition at line 79 of file ConstantRegionDetector.hh.
|
inline |
Definition at line 86 of file ConstantRegionDetector.hh.
|
inline |
restrict maximum number of features -1 is default and all features are returned.
Definition at line 97 of file ConstantRegionDetector.hh.
|
inline |
Definition at line 90 of file ConstantRegionDetector.hh.
|
inline |
Definition at line 72 of file ConstantRegionDetector.hh.
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
Definition at line 123 of file ConstantRegionDetector.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 122 of file ConstantRegionDetector.hh.
|
protected |
mask image usefull for water regions in images which usually have very constant regions compared to the rest of the image (set to one if water/ to to be used)
Definition at line 130 of file ConstantRegionDetector.hh.
|
protected |
restrict maximum number of features -1 is default and all features are returned.
Definition at line 125 of file ConstantRegionDetector.hh.
|
protected |
required min distance between two constance regions
Definition at line 127 of file ConstantRegionDetector.hh.
|
protected |
Definition at line 121 of file ConstantRegionDetector.hh.