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

Describes a lookup table, that is used to for pseudo-coloring (i.e. for assigning colors to gray-level images). More...

#include <eVision/EasyColor/EPseudoColorLookup.h>

Collaboration diagram for eVision::EPseudoColorLookup:

Public Member Functions

 EPseudoColorLookup ()
 Default constructor of EPseudoColorLookup objects.
virtual ~EPseudoColorLookup () throw ()
void SetShading (eVision::EC24 black, eVision::EC24 white, eVision::EColorSystem colorSystem, bool wrap)
 Sets up a pseudo-color mapping such that gray level 0 corresponds to color c24Black, gray level 255 corresponds to color c24White, and intermediate values are interpolated linearly between these two extremes.
void SetShading (eVision::EC24 black, eVision::EC24 white, eVision::EColorSystem colorSystem)
 Sets up a pseudo-color mapping such that gray level 0 corresponds to color c24Black, gray level 255 corresponds to color c24White, and intermediate values are interpolated linearly between these two extremes.
 EPseudoColorLookup (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Describes a lookup table, that is used to for pseudo-coloring (i.e. for assigning colors to gray-level images).

License(s): EasyColor

Constructor & Destructor Documentation

◆ EPseudoColorLookup() [1/2]

eVision::EPseudoColorLookup::EPseudoColorLookup ( )

Default constructor of EPseudoColorLookup objects.

◆ ~EPseudoColorLookup()

eVision::EPseudoColorLookup::~EPseudoColorLookup ( )
throw ( )
virtual

◆ EPseudoColorLookup() [2/2]

eVision::EPseudoColorLookup::EPseudoColorLookup ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ SetShading() [1/2]

void eVision::EPseudoColorLookup::SetShading ( eVision::EC24 black,
eVision::EC24 white,
eVision::EColorSystem colorSystem )

Sets up a pseudo-color mapping such that gray level 0 corresponds to color c24Black, gray level 255 corresponds to color c24White, and intermediate values are interpolated linearly between these two extremes.

Parameters
blackColor to be mapped on a black (value 0) pixel.
whiteColor to be mapped on a white (value 255) pixel.
colorSystemColor system in which interpolation takes place.

Furthermore, interpolation is performed in the designated color system. Even though interpolation is performed in an arbitrary color system, the extreme colors are specified in the RGB space. To obtain interesting shades of colors, it is recommended to interpolate on the hue component alone.

◆ SetShading() [2/2]

void eVision::EPseudoColorLookup::SetShading ( eVision::EC24 black,
eVision::EC24 white,
eVision::EColorSystem colorSystem,
bool wrap )

Sets up a pseudo-color mapping such that gray level 0 corresponds to color c24Black, gray level 255 corresponds to color c24White, and intermediate values are interpolated linearly between these two extremes.

Parameters
blackColor to be mapped on a black (value 0) pixel.
whiteColor to be mapped on a white (value 255) pixel.
colorSystemColor system in which interpolation takes place.
wrapIf the color system supports a hue component, indicates whether hue wrap around must be applied.

Furthermore, interpolation is performed in the designated color system. Even though interpolation is performed in an arbitrary color system, the extreme colors are specified in the RGB space. To obtain interesting shades of colors, it is recommended to interpolate on the hue component alone.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EPseudoColorLookup::wrappedClass_