Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Image_PseudoColorImage Class Reference

A PseudoColorImage is a DIndexedImage associated with a
ColorMap . The ColoMap is set at Creation time and then
never be changed. Each Pixel in the Image ,as a IndexPixel
from Aspect, match a ColoMap Entry with the same value.

#include <Image_PseudoColorImage.hxx>

Inheritance diagram for Image_PseudoColorImage:
Inheritance graph
[legend]

Public Member Functions

 Image_PseudoColorImage (const Standard_Integer x, const Standard_Integer y, const Standard_Integer dx, const Standard_Integer dy, const Handle< Aspect_ColorMap > &aColorMap)
 Creates a PseudoColorImage object.
The default Background Pixel is set to 0 .
All the Image is initialised with Background Pixel

 Image_PseudoColorImage (const Standard_Integer x, const Standard_Integer y, const Standard_Integer dx, const Standard_Integer dy, const Handle< Aspect_ColorMap > &aColorMap, const Aspect_IndexPixel &BackPixel)
 Creates a PseudoColorImage object and set the
Background Pixel.
All the Image is initialised with Background Pixel

Image_TypeOfImage Type () const
 Returns the Image Type.

Handle_Aspect_ColorMap ColorMap () const
 returns the Image ColorMap .

const Quantity_ColorPixelColor (const Standard_Integer X, const Standard_Integer Y) const
 Returns the Pixel Color .

virtual
Handle_Quantity_HArray1OfColor 
RowColor (const Standard_Integer Y) const
 Return the PixelRow Color in a HArray1 of Color.

virtual void RowColor (const Standard_Integer Y, Quantity_Array1OfColor &aArray1) const
 Stores the PixelRow Color in a Array1 .

Handle_Image_PseudoColorImage Squeeze (const Aspect_IndexPixel &BasePixel) const
 Creates a new Image with continuous Pixel and a continuous
ColorMap whith only used Image color starting from
BasePixel .

void SqueezedLookupTable (const Aspect_IndexPixel &BasePixel, Image_LookupTable &aLookup) const
 Creates a LookupTable that can be used to create a
new Image with continuous Pixel and a continuous
ColorMap with only used Image color starting
from BasePixel .

void Lookup (const Image_LookupTable &aLookup)
 Pass a PseudoColorImage through a lookupTable

void Extrema (Aspect_IndexPixel &Min, Aspect_IndexPixel &Max) const
 Find the maximum and minimum Pixel Value of an Image.

void Threshold (const Aspect_IndexPixel &Min, const Aspect_IndexPixel &Max, const Aspect_IndexPixel &Map)
 This method changes the value of any Pixel beetwen the
range (Min->Max) to the Pixel Map value. All Pixel values
outside the range are passed through without changed .

void Rescale (const Standard_Real Scale, const Standard_Real Offset)
 Map the Image Pixel Value from one range to another range.
This method perform the mapping by multiplying each
Pixel Value by Scale and then adding Offset to the result.

Handle_Image_Image Dup () const
 Duplicate a Image.


Constructor & Destructor Documentation


Member Function Documentation

Handle_Aspect_ColorMap Image_PseudoColorImage::ColorMap ( ) const
Handle_Image_Image Image_PseudoColorImage::Dup ( ) const [virtual]

Implements Image_Image.

Implements Image_Image.

virtual Handle_Quantity_HArray1OfColor Image_PseudoColorImage::RowColor ( const Standard_Integer  Y) const [virtual]

Reimplemented from Image_Image.

virtual void Image_PseudoColorImage::RowColor ( const Standard_Integer  Y,
Quantity_Array1OfColor aArray1 
) const [virtual]

Reimplemented from Image_Image.

Handle_Image_PseudoColorImage Image_PseudoColorImage::Squeeze ( const Aspect_IndexPixel BasePixel) const

Implements Image_DIndexedImage.


The documentation for this class was generated from the following file: