eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::Segmenters::EColorRangeThresholdSegmenter Class Reference

Segments an image using a double threshold on a color image. More...

#include <eVision/EasyObject/EasyObject2/Segmenters/EColorRangeThresholdSegmenter.h>

Inheritance diagram for eVision::Segmenters::EColorRangeThresholdSegmenter:
Collaboration diagram for eVision::Segmenters::EColorRangeThresholdSegmenter:

Public Member Functions

virtual ~EColorRangeThresholdSegmenter () throw ()
bool operator== (const eVision::Segmenters::EColorRangeThresholdSegmenter &other) const
 Comparison operator.
void Load (const std::string &path)
 Load the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Load the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Save the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Save the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for writing.
void SetLowThreshold (eVision::EC24 threshold)
 Value of the low threshold.
eVision::EC24 GetLowThreshold () const
 Value of the low threshold.
void SetHighThreshold (eVision::EC24 threshold)
 Value of the high threshold.
eVision::EC24 GetHighThreshold () const
 Value of the high threshold.
 EColorRangeThresholdSegmenter (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::Segmenters::ETwoLayersImageSegmenter
virtual ~ETwoLayersImageSegmenter () throw ()
bool operator== (const eVision::Segmenters::ETwoLayersImageSegmenter &other) const
 Comparison operator.
void Load (const std::string &path)
 Load the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Load the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Save the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Save the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for writing.
virtual void SetBlackLayerIndex (unsigned int index)
 Index of the black layer in the destination coded image.
virtual unsigned int GetBlackLayerIndex () const
 Index of the black layer in the destination coded image.
virtual void SetBlackLayerEncoded (bool encode)
 Black layer encoding status.
virtual bool GetBlackLayerEncoded () const
 Black layer encoding status.
virtual void SetWhiteLayerIndex (unsigned int index)
 Index of the white layer in the destination coded image.
virtual unsigned int GetWhiteLayerIndex () const
 Index of the white layer in the destination coded image.
virtual void SetWhiteLayerEncoded (bool encode)
 White layer encoding status.
virtual bool GetWhiteLayerEncoded () const
 White layer encoding status.
 ETwoLayersImageSegmenter (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::Segmenters::EImageSegmenter
virtual ~EImageSegmenter () throw ()
 EImageSegmenter (CppWrapperInternal::InternalConstructor)

Additional Inherited Members

Public Attributes inherited from eVision::Segmenters::EImageSegmenter
CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Segments an image using a double threshold on a color image.

This segmenter is applicable to EROIC24 RGB color images. It produces coded images with two layers: The White layer (usually, with index 1) contains the unmasked pixels that belong to the cube of the RGB space that spans the low threshold point to the high threshold point; and the Black layer (usually, with index 0) contains the remaining unmasked pixels.

License(s): EasyObject

Constructor & Destructor Documentation

◆ ~EColorRangeThresholdSegmenter()

eVision::Segmenters::EColorRangeThresholdSegmenter::~EColorRangeThresholdSegmenter ( )
throw ( )
virtual

◆ EColorRangeThresholdSegmenter()

eVision::Segmenters::EColorRangeThresholdSegmenter::EColorRangeThresholdSegmenter ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetHighThreshold()

eVision::EC24 eVision::Segmenters::EColorRangeThresholdSegmenter::GetHighThreshold ( ) const

Value of the high threshold.

◆ GetLowThreshold()

eVision::EC24 eVision::Segmenters::EColorRangeThresholdSegmenter::GetLowThreshold ( ) const

Value of the low threshold.

◆ Load() [1/2]

void eVision::Segmenters::EColorRangeThresholdSegmenter::Load ( const std::string & path)

Load the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Load() [2/2]

void eVision::Segmenters::EColorRangeThresholdSegmenter::Load ( eVision::ESerializer * serializer)

Load the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ operator==()

bool eVision::Segmenters::EColorRangeThresholdSegmenter::operator== ( const eVision::Segmenters::EColorRangeThresholdSegmenter & other) const

Comparison operator.

Parameters
otherOther segmenter to compare to.

◆ Save() [1/2]

void eVision::Segmenters::EColorRangeThresholdSegmenter::Save ( const std::string & path)

Save the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Save() [2/2]

void eVision::Segmenters::EColorRangeThresholdSegmenter::Save ( eVision::ESerializer * serializer)

Save the EColorRangeThresholdSegmenter configuration. The given ESerializer must have been created for writing.

Parameters
serializerThe serializer.

◆ SetHighThreshold()

void eVision::Segmenters::EColorRangeThresholdSegmenter::SetHighThreshold ( eVision::EC24 threshold)

Value of the high threshold.

◆ SetLowThreshold()

void eVision::Segmenters::EColorRangeThresholdSegmenter::SetLowThreshold ( eVision::EC24 threshold)

Value of the low threshold.