Defines a linear convolution filter kernel (cXXYY) for use with FilterUser2x2, FilterUser3x3 and FilterUser5x5. More...
Data Fields | |
cvbval_t | c0000 |
Element (2,2) of the filter mask. Required for FilterUser5x5, FilterUser3x3 and FilterUser2x2. | |
cvbval_t | c000B |
Element (2,3) of the filter mask. Required for FilterUser5x5, FilterUser3x3 and FilterUser2x2. | |
cvbval_t | c000T |
Element (2,1) of the filter mask. Required for FilterUser5x5 and FilterUser3x3. | |
cvbval_t | c00BB |
Element (2,4) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | c00TT |
Element (2,0) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | c0L00 |
Element (1,2) of the filter mask. Required for FilterUser5x5 and FilterUser3x3. | |
cvbval_t | c0L0B |
Element (1,3) of the filter mask. Required for FilterUser5x5 and FilterUser3x3. | |
cvbval_t | c0L0T |
Element (1,1) of the filter mask. Required for FilterUser5x5 and FilterUser3x3. | |
cvbval_t | c0LBB |
Element (1,4) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | c0LTT |
Element (1,0) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | c0R00 |
Element (3,2) of the filter mask. Required for FilterUser5x5, FilterUser3x3 and FilterUser2x2. | |
cvbval_t | c0R0B |
Element (3,3) of the filter mask. Required for FilterUser5x5, FilterUser3x3 and FilterUser2x2. | |
cvbval_t | c0R0T |
Element (3,1) of the filter mask. Required for FilterUser5x5 and FilterUser3x3. | |
cvbval_t | c0RBB |
Element (3,4) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | c0RTT |
Element (3,0) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cLL00 |
Element (0,2) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cLL0B |
Element (0,3) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cLL0T |
Element (0,1) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cLLBB |
Element (0,4) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cLLTT |
Element (0,0) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cRR00 |
Element (4,2) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cRR0B |
Element (4,3) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cRR0T |
Element (4,1) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cRRBB |
Element (4,4) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | cRRTT |
Element (4,0) of the filter mask. Required only for FilterUser5x5. | |
cvbval_t | Offst |
Offset to be added to the convolution result. Note that unlike the filter coefficients this value is expected to be a regular offset and not given in units of 1/1000. | |
OBJ | Reserved |
Reserved for internal use. | |
Related Functions | |
(Note that these are not member functions.) | |
cvbbool_t | FilterUser2x2 (IMG imgIn, const TFilterDef &filterDef, IMG &imgOut) |
Creates an image by applying a 2x2 linear convolution filter to the input image. More... | |
cvbbool_t | FilterUser3x3 (IMG imgIn, const TFilterDef &filterDef, IMG &imgOut) |
Creates an image by applying a 3x3 linear convolution filter to the input image. More... | |
cvbbool_t | FilterUser5x5 (IMG imgIn, const TFilterDef &filterDef, IMG &imgOut) |
Creates an image by applying a 5x5 linear convolution filter to the input image. More... | |
Defines a linear convolution filter kernel (cXXYY) for use with FilterUser2x2, FilterUser3x3 and FilterUser5x5.
The struct members have been named using the following pattern: c<H><H><V><V>
where
c
stands for 'coefficient'<H>
stands for a horizontal offset (may be L
, 0
or R
)<V>
stands for a horizontal offset (may be T
, 0
or B
) That way, the name of each of the struct members identifies the coefficient's position in a 5x5 filter mask; for example c0LTT
is the coefficient in the top row of the 2nd column of the filter mask.FilterUser5x5 requires a 5x5 filter mask and will use all the coefficients defined in a TFilterDef
struct. FilterUser3x3 will only evaluate the elements
c0L0T | c000T | c0R0T |
c0L00 | c0000 | c0R00 |
c0L0B | c000B | c0R0B |
and FilterUser2x2 only evaluates
c0000 | c0R00 |
c000B | c0R0B |