FreqFilter
Generation Function to Create Filter
int FreqFilter( uint nRows, uint nCols, DWORD dwType = FILTER2D_BUTTERWORTH | FILTER2D_LOW_PASS |FILTER2D_CUTOFF_IN_FRACTION, double dCutOff = 0.5, int nOrder = 1, double dCutOff2 = 0.5 )
Returns FILTER2DERROR_NO_ERROR on successful and a non-zero error code on failure, see FILTER2DERROR.
EX1
int matrixbase_FreqFilter_ex1() { matrix mat; int nRet = mat.FreqFilter(32, 32, FILTER2D_GAUSSIAN | FILTER2D_HIGH_PASS | FILTER2D_CUTOFF_IN_FRACTION); ASSERT( FILTER2DERROR_NO_ERROR == nRet ); return nRet; }
origin.h