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

Segments an image using a pixel-by-pixel double threshold given as two images. More...

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

Inheritance diagram for eVision::Segmenters::EImageRangeSegmenter:
Collaboration diagram for eVision::Segmenters::EImageRangeSegmenter:

Public Member Functions

virtual ~EImageRangeSegmenter () throw ()
bool operator== (const eVision::Segmenters::EImageRangeSegmenter &other) const
 Comparison operator.
void Load (const std::string &path)
 Load the EImageRangeSegmenter configuration. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Load the EImageRangeSegmenter configuration. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Save the EImageRangeSegmenter configuration. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Save the EImageRangeSegmenter 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 void SetBlackLayerEncoded (bool encode)
 Black layer encoding status.
virtual void SetWhiteLayerIndex (unsigned int index)
 Index of the white layer in the destination coded image.
virtual void SetWhiteLayerEncoded (bool encode)
 White layer encoding status.
void SetLowImageBW8 (const eVision::EROIBW8 *image)
 Low image for the segmentation of EROIBW8 images.
const eVision::EROIBW8 * GetLowImageBW8 () const
 Low image for the segmentation of EROIBW8 images.
void SetHighImageBW8 (const eVision::EROIBW8 *image)
 High image for the segmentation of EROIBW8 images.
const eVision::EROIBW8 * GetHighImageBW8 () const
 High image for the segmentation of EROIBW8 images.
void SetLowImageBW16 (const eVision::EROIBW16 *image)
 Low image for the segmentation of EROIBW16 images.
const eVision::EROIBW16 * GetLowImageBW16 () const
 Low image for the segmentation of EROIBW16 images.
void SetHighImageBW16 (const eVision::EROIBW16 *image)
 High image for the segmentation of EROIBW16 images.
const eVision::EROIBW16 * GetHighImageBW16 () const
 High image for the segmentation of EROIBW16 images.
void SetLowImageC24 (const eVision::EROIC24 *image)
 Low image for the segmentation of EROIC24 images.
const eVision::EROIC24 * GetLowImageC24 () const
 Low image for the segmentation of EROIC24 images.
void SetHighImageC24 (const eVision::EROIC24 *image)
 High image for the segmentation of EROIC24 images.
const eVision::EROIC24 * GetHighImageC24 () const
 High image for the segmentation of EROIC24 images.
 EImageRangeSegmenter (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 unsigned int GetBlackLayerIndex () const
 Index of the black layer in the destination coded image.
virtual bool GetBlackLayerEncoded () const
 Black layer encoding status.
virtual unsigned int GetWhiteLayerIndex () const
 Index of the white layer in the destination coded image.
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 pixel-by-pixel double threshold given as two images.

This segmenter is applicable to EROIBW8, EROIBW16 and EROIC24 images. It produces coded images with two layers. The low threshold and the high threshold are defined for each pixel individually by means of two reference images of the same type as the source image: the Low Image and the High Image.

For grayscale images, the White layer (usually, with index 1) contains unmasked pixels having a gray value in a range defined by the gray value of the corresponding unmasked pixels in the Low Image and the High Image.

For RGB color images, the White layer (usually, with index 1) contains unmasked pixels having a color inside the cube of the color space defined by the colors of the corresponding unmasked pixels in the Low Image and the High Image.

The Black layer (usually, with index 0) contains the remaining unmasked pixels.

License(s): EasyObject

Constructor & Destructor Documentation

◆ ~EImageRangeSegmenter()

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

◆ EImageRangeSegmenter()

eVision::Segmenters::EImageRangeSegmenter::EImageRangeSegmenter ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetHighImageBW16()

const eVision::EROIBW16 * eVision::Segmenters::EImageRangeSegmenter::GetHighImageBW16 ( ) const

High image for the segmentation of EROIBW16 images.

◆ GetHighImageBW8()

const eVision::EROIBW8 * eVision::Segmenters::EImageRangeSegmenter::GetHighImageBW8 ( ) const

High image for the segmentation of EROIBW8 images.

◆ GetHighImageC24()

const eVision::EROIC24 * eVision::Segmenters::EImageRangeSegmenter::GetHighImageC24 ( ) const

High image for the segmentation of EROIC24 images.

◆ GetLowImageBW16()

const eVision::EROIBW16 * eVision::Segmenters::EImageRangeSegmenter::GetLowImageBW16 ( ) const

Low image for the segmentation of EROIBW16 images.

◆ GetLowImageBW8()

const eVision::EROIBW8 * eVision::Segmenters::EImageRangeSegmenter::GetLowImageBW8 ( ) const

Low image for the segmentation of EROIBW8 images.

◆ GetLowImageC24()

const eVision::EROIC24 * eVision::Segmenters::EImageRangeSegmenter::GetLowImageC24 ( ) const

Low image for the segmentation of EROIC24 images.

◆ Load() [1/2]

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

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

Parameters
pathThe file path.

◆ Load() [2/2]

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

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

Parameters
serializerThe serializer.

◆ operator==()

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

Comparison operator.

Parameters
otherOther segmenter to compare to

◆ Save() [1/2]

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

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

Parameters
pathThe file path.

◆ Save() [2/2]

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

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

Parameters
serializerThe serializer.

◆ SetBlackLayerEncoded()

void eVision::Segmenters::EImageRangeSegmenter::SetBlackLayerEncoded ( bool encode)
virtual

Black layer encoding status.

Reimplemented from eVision::Segmenters::ETwoLayersImageSegmenter.

◆ SetBlackLayerIndex()

void eVision::Segmenters::EImageRangeSegmenter::SetBlackLayerIndex ( unsigned int index)
virtual

Index of the black layer in the destination coded image.

Setting this property automatically switches on the encoding of the black layer.

Reimplemented from eVision::Segmenters::ETwoLayersImageSegmenter.

◆ SetHighImageBW16()

void eVision::Segmenters::EImageRangeSegmenter::SetHighImageBW16 ( const eVision::EROIBW16 * image)

High image for the segmentation of EROIBW16 images.

◆ SetHighImageBW8()

void eVision::Segmenters::EImageRangeSegmenter::SetHighImageBW8 ( const eVision::EROIBW8 * image)

High image for the segmentation of EROIBW8 images.

◆ SetHighImageC24()

void eVision::Segmenters::EImageRangeSegmenter::SetHighImageC24 ( const eVision::EROIC24 * image)

High image for the segmentation of EROIC24 images.

◆ SetLowImageBW16()

void eVision::Segmenters::EImageRangeSegmenter::SetLowImageBW16 ( const eVision::EROIBW16 * image)

Low image for the segmentation of EROIBW16 images.

◆ SetLowImageBW8()

void eVision::Segmenters::EImageRangeSegmenter::SetLowImageBW8 ( const eVision::EROIBW8 * image)

Low image for the segmentation of EROIBW8 images.

◆ SetLowImageC24()

void eVision::Segmenters::EImageRangeSegmenter::SetLowImageC24 ( const eVision::EROIC24 * image)

Low image for the segmentation of EROIC24 images.

◆ SetWhiteLayerEncoded()

void eVision::Segmenters::EImageRangeSegmenter::SetWhiteLayerEncoded ( bool encode)
virtual

White layer encoding status.

Reimplemented from eVision::Segmenters::ETwoLayersImageSegmenter.

◆ SetWhiteLayerIndex()

void eVision::Segmenters::EImageRangeSegmenter::SetWhiteLayerIndex ( unsigned int index)
virtual

Index of the white layer in the destination coded image.

Setting this property automatically switches on the encoding of the white layer.

Reimplemented from eVision::Segmenters::ETwoLayersImageSegmenter.