dmIFilters Class Reference

Apply linear filters on image. More...

#include <CCI_Filters.h>

Inherits dmINotify.

List of all members.

Public Member Functions

bool ApplyKernel (cci_object *params, CONST char_t *kernel, int iter, int oper)
 Apply a convolution operator.
bool SetMaskSize (dm_uint width, dm_uint height)
 Set the size of the rectangular filter mask.
bool SetMaskRef (dm_uint ox, dm_uint oy)
 Set the location of the central pixel for the filter mask.
bool MFilter (cci_object *params, dm_uint type)
 Apply a filter type using the rectangular mask defined by SetMaskSize() and SetMaskRef().
bool RFilter (cci_object *params, dm_uint rank)
 Apply a rank filter of rank rank using the rectangular mask defined by SetMaskSize() and SetMaskRef().
bool LFilter (cci_object *params, dm_real *coeffs, dm_uint count)
 Apply linear 'L' filter using the rectangular mask defined by SetMaskSize() and SetMaskRef() and the array of coefficient coeffs.


Detailed Description

Apply linear filters on image.


Member Function Documentation

bool dmIFilters::ApplyKernel cci_object *  params,
CONST char_t *  kernel,
int  iter,
int  oper
[inline]
 

Apply a convolution operator.

Parameters:
params parameter object ( see dmIParameters )
kernel the kernel family string id.
iter the Number of iteration.
oper an arithmetic operation to perform between the original image and the result of the filter (see daim_operations for details)

bool dmIFilters::LFilter cci_object *  params,
dm_real *  coeffs,
dm_uint  count
[inline]
 

Apply linear 'L' filter using the rectangular mask defined by SetMaskSize() and SetMaskRef() and the array of coefficient coeffs.

IMPORTANT: coeffs must at least as large as the size N of the the rectangular mask.

The result of a 'L' filter is a linear combination of the ordered sequence of pixels value with the input coefficents.

bool dmIFilters::MFilter cci_object *  params,
dm_uint  type
[inline]
 

Apply a filter type using the rectangular mask defined by SetMaskSize() and SetMaskRef().

type can be set to the following values:

  • CCIV_Filters_Min for a <min> filter
  • CCIV_Filters_Max for a <max> filter
  • CCIV_Filters_Middle for a <middle> filter
  • CCIV_Filters_Mean for a <mean> filter
  • CCIV_Filters_Median for a <median> filter

bool dmIFilters::RFilter cci_object *  params,
dm_uint  rank
[inline]
 

Apply a rank filter of rank rank using the rectangular mask defined by SetMaskSize() and SetMaskRef().

Note that rank cannot be larger that the number of pixels defined by the size N of the the rectangular mask.


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO