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

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

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

Inheritance diagram for eVision::Segmenters::EColorSingleThresholdSegmenter:
Collaboration diagram for eVision::Segmenters::EColorSingleThresholdSegmenter:

Public Member Functions

virtual ~EColorSingleThresholdSegmenter () throw ()
bool operator== (const eVision::Segmenters::EColorSingleThresholdSegmenter &other) const
 Comparison operator.
void Load (const std::string &path)
 Load the EColorSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Load the EColorSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Save the EColorSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Save the EColorSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.
void SetThreshold (eVision::EC24 threshold)
 Value of the threshold.
eVision::EC24 GetThreshold () const
 Value of the threshold.
 EColorSingleThresholdSegmenter (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 single 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 defined by the threshold point and the white point (255,255,255); and the Black layer (usually, with index 0) contains the remaining unmasked pixels.

License(s): EasyObject

Constructor & Destructor Documentation

◆ ~EColorSingleThresholdSegmenter()

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

◆ EColorSingleThresholdSegmenter()

eVision::Segmenters::EColorSingleThresholdSegmenter::EColorSingleThresholdSegmenter ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetThreshold()

eVision::EC24 eVision::Segmenters::EColorSingleThresholdSegmenter::GetThreshold ( ) const

Value of the threshold.

◆ Load() [1/2]

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

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

Parameters
pathThe file path.

◆ Load() [2/2]

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

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

Parameters
serializerThe serializer.

◆ operator==()

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

Comparison operator.

Parameters
otherOther segmenter to compare to.

◆ Save() [1/2]

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

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

Parameters
pathThe file path.

◆ Save() [2/2]

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

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

Parameters
serializerThe serializer.

◆ SetThreshold()

void eVision::Segmenters::EColorSingleThresholdSegmenter::SetThreshold ( eVision::EC24 threshold)

Value of the threshold.