Basic Image AlgorithmS Library
2.8.0
|
#include <Image/ColorSegmentation.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
ColorSegmentation () | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
void | GetGreyImage (BIAS::Image< unsigned char > &imgGrey) |
void | GetHueImage (BIAS::Image< unsigned char > &imgHue) |
void | GetSatImage (BIAS::Image< unsigned char > &imgSat) |
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 | Segment (BIAS::Image< unsigned char > &src, BIAS::Image< unsigned char > &res, int hue, int hueIntervall, int sat, int satIntervall, int light=0, int lightIntervall=0) |
void | Segment (const unsigned char **src, unsigned char **dst, const int tl[2], const int br[2], const int hue, const int hueIntervall, const int sat, const int satIntervall, const int light=0, const int lightIntervall=0) |
void | SegmentTreshold (BIAS::Image< unsigned char > &src, BIAS::Image< unsigned char > &res, int min, int max, int satTreshhold) |
This Method is used for segmenting the values of channel one within a given range. More... | |
void | SetColorSpace (BIAS::ImageBase::EColorModel farbraum) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
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 |
BIAS::Image< unsigned char > | image |
BIAS::ImageBase::EColorModel | stdFarbRaum |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
Definition at line 42 of file ColorSegmentation.hh.
ColorSegmentation::ColorSegmentation | ( | ) |
Definition at line 34 of file ColorSegmentation.cpp.
References BIAS::ImageBase::CM_HSL.
|
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 |
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
void ColorSegmentation::GetGreyImage | ( | BIAS::Image< unsigned char > & | imgGrey | ) |
Definition at line 161 of file ColorSegmentation.cpp.
References BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::SetPixel().
void ColorSegmentation::GetHueImage | ( | BIAS::Image< unsigned char > & | imgHue | ) |
Definition at line 122 of file ColorSegmentation.cpp.
References BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::SetPixel().
void ColorSegmentation::GetSatImage | ( | BIAS::Image< unsigned char > & | imgSat | ) |
Definition at line 141 of file ColorSegmentation.cpp.
References BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::SetPixel().
|
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 |
void ColorSegmentation::Segment | ( | BIAS::Image< unsigned char > & | src, |
BIAS::Image< unsigned char > & | res, | ||
int | hue, | ||
int | hueIntervall, | ||
int | sat, | ||
int | satIntervall, | ||
int | light = 0 , |
||
int | lightIntervall = 0 |
||
) |
Definition at line 48 of file ColorSegmentation.cpp.
References BIAS::ImageConvert::Convert(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().
Referenced by BIAS::ColorSegmentationThreaded::Segment_().
|
inline |
Definition at line 66 of file ColorSegmentation.hh.
void ColorSegmentation::SegmentTreshold | ( | BIAS::Image< unsigned char > & | src, |
BIAS::Image< unsigned char > & | res, | ||
int | min, | ||
int | max, | ||
int | satTreshhold | ||
) |
This Method is used for segmenting the values of channel one within a given range.
Additionally you can set a treshold for channel two. This method is usefull for working in HSV or HSL. Other ranges aren't tested.
Definition at line 82 of file ColorSegmentation.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), and BIAS::ImageBase::IsEmpty().
void ColorSegmentation::SetColorSpace | ( | BIAS::ImageBase::EColorModel | farbraum | ) |
Definition at line 41 of file ColorSegmentation.cpp.
|
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 |
|
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=().
|
staticprotectedinherited |
|
protected |
Definition at line 96 of file ColorSegmentation.hh.
|
protected |
Definition at line 100 of file ColorSegmentation.hh.