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

PLFilterThreshold Class Reference

Returns an 8 bpp grayscale bitmap that contains only the channel selected and is black wherever this channel has values <= threshold_min or >= threshold_max. More...

#include <plfilterthreshold.h>

Inheritance diagram for PLFilterThreshold:

Inheritance graph
[legend]
Collaboration diagram for PLFilterThreshold:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLFilterThreshold (int threshold_min, int threshold_max, int channel)
virtual ~PLFilterThreshold ()
virtual void Apply (PLBmp *pBmpSource, PLBmp *pBmpDest) const
 Applies the Filter to pBmpSource and stores the result in pBmpDest.

Protected Attributes

int m_threshold_min
int m_threshold_max
int m_channel

Detailed Description

Returns an 8 bpp grayscale bitmap that contains only the channel selected and is black wherever this channel has values <= threshold_min or >= threshold_max.

Definition at line 24 of file plfilterthreshold.h.


Constructor & Destructor Documentation

PLFilterThreshold::PLFilterThreshold int  threshold_min,
int  threshold_max,
int  channel
 

Definition at line 21 of file plfilterthreshold.cpp.

PLFilterThreshold::~PLFilterThreshold  )  [virtual]
 

Definition at line 29 of file plfilterthreshold.cpp.


Member Function Documentation

void PLFilterThreshold::Apply PLBmp pBmpSource,
PLBmp pBmpDest
const [virtual]
 

Applies the Filter to pBmpSource and stores the result in pBmpDest.

The base-class version copies the bitmap before calling ApplyInPlace (pBmpDest).

Reimplemented from PLFilter.

Definition at line 34 of file plfilterthreshold.cpp.

References PLBmp::Create(), PLBmp::GetBitsPerPixel(), PLBmp::GetHeight(), PLBmp::GetLineArray(), PLBmp::GetResolution(), PLBmp::GetWidth(), PLASSERT, and PLBYTE.

Here is the call graph for this function:


Member Data Documentation

int PLFilterThreshold::m_channel [protected]
 

Definition at line 38 of file plfilterthreshold.h.

int PLFilterThreshold::m_threshold_max [protected]
 

Definition at line 37 of file plfilterthreshold.h.

int PLFilterThreshold::m_threshold_min [protected]
 

Definition at line 36 of file plfilterthreshold.h.


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