Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuMap Class Reference

Class to handle remapping intensities. More...

#include <vuMap.h>

Collaboration diagram for vuMap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuMap ()
 Constructor.
virtual ~vuMap ()
void createRamp (word start, word startval, word end, word endval)
 Create a mapping to window an intensity range.
void createIdentity ()
 Identity mapping.
word operator[] (word index) const
 Get mapped value for entry 'index' No range checking is performed.
wordoperator[] (word index)
 Allows to modify entry.

Protected Attributes

word m_Map [1<< 16]
 Intensity map.

Friends

ostream & operator<< (ostream &os, const vuMap &map)
istream & operator>> (istream &is, vuMap &map)

Detailed Description

Class to handle remapping intensities.

Can be used to window intensity ranges or to enhance lower intensities or to equalize histograms. Should use vuHistogram to setup some specific maps.

Definition at line 14 of file vuMap.h.


Constructor & Destructor Documentation

vuMap::vuMap  ) 
 

Constructor.

Definition at line 3 of file vuMap.cpp.

References createIdentity().

Here is the call graph for this function:

vuMap::~vuMap  )  [virtual]
 

Definition at line 8 of file vuMap.cpp.


Member Function Documentation

void vuMap::createIdentity  ) 
 

Identity mapping.

Definition at line 25 of file vuMap.cpp.

References dword, and m_Map.

Referenced by vuMap().

void vuMap::createRamp word  start,
word  startval,
word  end,
word  endval
 

Create a mapping to window an intensity range.

The range from start to end will be mapped to values from startVal to endVal. The range outside [start, end] is set to constant startval and endval accoringly.

Definition at line 11 of file vuMap.cpp.

References dword, m_Map, and word.

Referenced by main().

word& vuMap::operator[] word  index  )  [inline]
 

Allows to modify entry.

No range checking is performed.

Definition at line 38 of file vuMap.h.

References word.

word vuMap::operator[] word  index  )  const [inline]
 

Get mapped value for entry 'index' No range checking is performed.

Definition at line 34 of file vuMap.h.

References word.


Friends And Related Function Documentation

ostream& operator<< ostream &  os,
const vuMap map
[friend]
 

Definition at line 32 of file vuMap.cpp.

istream& operator>> istream &  is,
vuMap map
[friend]
 

Definition at line 40 of file vuMap.cpp.


Member Data Documentation

word vuMap::m_Map[1<< 16] [protected]
 

Intensity map.

Definition at line 47 of file vuMap.h.

Referenced by createIdentity(), and createRamp().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:18 2004 for vuVolume by  doxygen 1.3.9.1