Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::ColorMap< T > Class Template Reference

#include <ColorMap.h>

Inheritance diagram for prapi::ColorMap< T >:

List of all members.

Detailed Description

template<class T>
class prapi::ColorMap< T >

ColorMap is a convenience class for creating color maps.

It is just a list of RGBColor objects and it is used by some image codecs.


Public Methods

 ColorMap (int initialSlots=16, int blockSize=16)
 ColorMap (const ColorMap &other)
 ColorMap (const List< RGBColor< T > > &other)
ColorMap & operator= (const ColorMap &other)
void generateGrayMap (int levels=256, T min=0, T max=256)
 Generate a map of gray values.

List< T > getChannel (int index)
 Get one channel from the color map as a list.


Member Function Documentation

template<class T>
void prapi::ColorMap< T >::generateGrayMap int    levels = 256,
  min = 0,
  max = 256
 

Generate a map of gray values.

Parameters:
levels  the number of gray levels
min  lowest gray level
max  highest gray level

template<class T>
List< T > prapi::ColorMap< T >::getChannel int    index
 

Get one channel from the color map as a list.

Parameters:
index  the channel index. 0 = red, 1 = green, 2 = blue


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.