Filter Library Camera Interface Physics

CScanFilterBinaryThreshold Class Reference
[Binary Threshold Filter]

#include <ScanFilterBinaryThreshold.h>

Inheritance diagram for CScanFilterBinaryThreshold:

CScanFilter List of all members.

Detailed Description

Definition at line 67 of file ScanFilterBinaryThreshold.h.

Public Types

typedef CScanBaseBuffer::ValueType ValueType
 the value type.
typedef ValueType InputPixelType
 the input pixel type.
typedef ValueType OutputPixelType
 the output pixel type.

Public Member Functions

Camera--Filter Interface
virtual void ReadFilterSettings ()
 configure filter with settings as provided by the application on the filterlist window (e.g.
virtual void WriteFilterSettings () const
 save filter settings e.g.
virtual LPCTSTR GetParameters () const
 provide current filter parameter(s) for filter-scripting capture in the main application; see also CScanFilterNull::GetParameters().
virtual BOOL SetParameters (LPCTSTR lpParameters)
 set parameters for filter-script execution of filter; see also CScanFilterNull::SetParameters().
virtual BOOL RunModeless (CWnd *pParentWnd, CDocument *pDoc)
 create filter dialog and pre Apply() filter to view result; see also CScanFilterNull::RunModeless().
virtual BOOL Apply ()
 check parameters, take care of a properly sized output buffer, set its name and copy filter parameters and process; see also CScanFilterNull::Apply().
Accessors
int Columns () const
 number of columns in image.
int Rows () const
InputPixelType GetLowerThreshold () const
 the lower threshold value.
InputPixelType GetUpperThreshold () const
 the upper threshold value.
OutputPixelType GetInsideValue () const
 the inside value.
OutputPixelType GetOutsideValue () const
 the outside value.
Mutators
void SetLowerThreshold (InputPixelType lower)
 set the lower threshold value.
void SetUpperThreshold (InputPixelType upper)
 set the upper threshold value.
void SetInsideValue (OutputPixelType inside)
 set the inside value.
void SetOutsideValue (OutputPixelType outside)
 set the outside value.

Static Public Attributes

static LPCTSTR m_lpcsFilterName
 the filter name.
static LPCTSTR m_lpcsShortFilterName
 the class short filtername.

Protected Member Functions

virtual void Serialize (CArchive &ar)
 store or retrieve the object's settings; see also CScanFilterNull::Serialize().

Protected Attributes

InputPixelType m_lower
 the lower threshold value.
InputPixelType m_upper
 the upper threshold value.
OutputPixelType m_inside
 the inside output value.
OutputPixelType m_outside
 the outside output value.

Friends

class CFilterDlg_BinaryThreshold
 its dialog class.


Member Function Documentation

void CScanFilterBinaryThreshold::ReadFilterSettings (  )  [virtual]

via registry); see also CScanFilterNull::ReadFilterSettings().

Reimplemented from CScanFilter.

Definition at line 115 of file ScanFilterBinaryThreshold.cpp.

References gCflRegistrySubkey, m_lpcsFilterName, Q_INVALID, and SetParameters().

void CScanFilterBinaryThreshold::WriteFilterSettings (  )  const [virtual]

for use with the filterlist window (e.g. via registry); see also ReadFilterSettings().

Reimplemented from CScanFilter.

Definition at line 134 of file ScanFilterBinaryThreshold.cpp.

References gCflRegistrySubkey, GetParameters(), m_lpcsFilterName, and Q_INVALID.


The documentation for this class was generated from the following files:
Camera Filter Library documentation © 2004-2007 by Leiden Probe Microscopy