Filter Library | Camera | Interface Physics |
#include <ScanFilterLinearRegression.h>
Inheritance diagram for CScanFilterLinearRegression:
Definition at line 124 of file ScanFilterLinearRegression.h.
Public Types | |
typedef CScanBaseBuffer::ValueType | value_type |
the value type. | |
typedef LinearRegressionImageFilter::FeatureSelector | FeatureSelector |
linear regression parameters to select from. | |
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 | PreApply () |
let PreApplyCore() perform the filter pre-processing; catch MFC and std exceptions; see also Apply(). | |
virtual BOOL | Apply () |
let ApplyCore() perform the filter processing; catch MFC and std exceptions; see also CScanFilterNull::Apply(). | |
virtual BOOL | PreApplyCore () |
check parameters, take care of a properly sized output buffer, set its name and copy filter parameters; see also ApplyCore(). | |
virtual BOOL | ApplyCore () |
pre-apply and process; see also CScanFilterNull::ApplyCore(). | |
virtual SPerformanceTestResult | GetPerformanceTestResult () |
measure algorithm performance. | |
Accessors | |
int | MaxCols () |
number of columns in area. | |
int | MaxRows () |
number of columns in area. | |
int | Ncols () |
number of columns in area. | |
int | Nrows () |
number of rows in area. | |
int | Size () |
number of pixels in area. | |
double | Theta () |
the angle theta for weighted sum of A.cos(theta) + B.sin(theta). | |
double | Factor () |
the factor to scale Alpha or Beta with. | |
FeatureSelector | Parameter () |
the selected linear regression parameter. | |
CharCptr | ParamName () |
the selected parameter name. | |
Mutators | |
void | Ncols (int ncols) |
set the number of columns in area. | |
void | Nrows (int nrows) |
set the number of rows in area. | |
void | Theta (double theta) |
set the angle Theta. | |
void | Factor (double factor) |
set the factor to scale Alpha or Beta with. | |
void | Parameter (FeatureSelector p) |
select the linear regression parameter to output. | |
Static Public Attributes | |
static LPCTSTR | m_lpcsFilterName |
filter name | |
static LPCTSTR | m_lpcsShortFilterName |
the class short filtername. | |
static const int | def_iXY |
default X and Y | |
static const double | def_dFactor |
default A,B,Alpha,Beta multiplication factor | |
static const FeatureSelector | def_eParameter |
default selection of parameter | |
Protected Member Functions | |
virtual void | Serialize (CArchive &ar) |
store or retrieve the object's settings; currently filter serialization is not used; see also CScanFilterNull::Serialize(). | |
Private Attributes | |
int | m_iSizeX |
the number of columns to include (must be odd) | |
int | m_iSizeY |
the number of rows to include (must be odd) | |
double | m_dTheta |
angle for weighted sum of A and B | |
double | m_dFactor |
factor to multiply Alpha or Beta with | |
FeatureSelector | m_eParameter |
the selected parameter |
void CScanFilterLinearRegression::ReadFilterSettings | ( | ) | [virtual] |
via registry); see also CScanFilterNull::ReadFilterSettings().
Reimplemented from CScanFilter.
Definition at line 152 of file ScanFilterLinearRegression.cpp.
References gCflRegistrySubkey, m_lpcsFilterName, Q_INVALID, and SetParameters().
void CScanFilterLinearRegression::WriteFilterSettings | ( | ) | const [virtual] |
for use with the filterlist window (e.g. via registry); see also ReadFilterSettings().
Reimplemented from CScanFilter.
Definition at line 177 of file ScanFilterLinearRegression.cpp.
References gCflRegistrySubkey, GetParameters(), m_lpcsFilterName, and Q_INVALID.
BOOL CScanFilterLinearRegression::ApplyCore | ( | ) | [virtual] |
Definition at line 439 of file ScanFilterLinearRegression.cpp.
References Factor(), CScanBaseBuffer::GetSpacingX(), CScanBaseBuffer::GetSpacingZ(), CScanBaseBuffer::IsBidirectionalScan(), CScanBaseBuffer::m_dwParameterMask, CScanFilter::m_lpsbIn, CScanFilter::m_lpsbOut, Ncols(), Nrows(), Parameter(), PreApplyCore(), and Theta().
Referenced by Apply().