Routines for image filtering.
More...
|
| enum | ICV_FILTER {
ICV_FILTER_LOW_PASS
, ICV_FILTER_LAPLACIAN
, ICV_FILTER_HORIZONTAL_GRAD
, ICV_FILTER_VERTICAL_GRAD
,
ICV_FILTER_HIGH_PASS
, ICV_FILTER_NULL
, ICV_FILTER_BOXCAR_AVERAGE
} |
| |
| enum | ICV_FILTER3 {
ICV_FILTER3_LOW_PASS
, ICV_FILTER3_HIGH_PASS
, ICV_FILTER3_BOXCAR_AVERAGE
, ICV_FILTER3_ANIMATION_SMEAR
,
ICV_FILTER3_NULL
} |
| |
Routines for image filtering.
This is done mainly using the convolution of images. Both Gray Scale and RGB images are taken care of.
◆ ICV_FILTER
| Enumerator |
|---|
| ICV_FILTER_LOW_PASS | |
| ICV_FILTER_LAPLACIAN | |
| ICV_FILTER_HORIZONTAL_GRAD | |
| ICV_FILTER_VERTICAL_GRAD | |
| ICV_FILTER_HIGH_PASS | |
| ICV_FILTER_NULL | |
| ICV_FILTER_BOXCAR_AVERAGE | |
Definition at line 41 of file filters.h.
◆ ICV_FILTER3
| Enumerator |
|---|
| ICV_FILTER3_LOW_PASS | |
| ICV_FILTER3_HIGH_PASS | |
| ICV_FILTER3_BOXCAR_AVERAGE | |
| ICV_FILTER3_ANIMATION_SMEAR | |
| ICV_FILTER3_NULL | |
Definition at line 51 of file filters.h.
◆ icv_filter()
Filters an image with the specified filter type. Basically convolves kernel with the image. Border samples are handled by clamping to the nearest valid edge pixel, which keeps normalized kernels normalized at image edges and on images smaller than the kernel. ICV_FILTER_NULL is a pass-through.
- Parameters
-
| img | Image to be filtered. |
| filter_type | Type of filter to be used. |
◆ icv_filter3()
Filters a set of three images with the specified filter type. Border samples are handled by clamping to the nearest valid edge pixel in each frame. Finds the resultant pixel with the help of neighboring pixels in all three images. ICV_FILTER3_NULL returns a copy of the current frame.
- Returns
- Resultant image.
◆ icv_fade()
Fades an image in place.
icv_fade will darken a pix by a certain fraction.
- Parameters
-
| img | ICV Image to be faded. |
| fraction | should be between 0 to 1. Amount by which the image is needed to faded. |