Documentation
|
|
The C interface for meanshift. More...
| afError | af_meanshift_S (float *d_out, const float *d_in, unsigned mI, unsigned nI, const float space, const float color, const int iter, int channels) |
| Meanshift filtering. More... | |
The C interface for meanshift.
A meanshift filter is an edge-preserving smoothing filter commonly used in object tracking and image segmentation.
This filter replaces each pixel in the image with the mean of the values within a given given color and spatial radius. The meanshift filter is an iterative algorithm that continues until a maxium number of iterations is met or until the value of the means no longer changes.
| afError af_meanshift_S | ( | float * | d_out, |
| const float * | d_in, | ||
| unsigned | mI, | ||
| unsigned | nI, | ||
| const float | space, | ||
| const float | color, | ||
| const int | iter, | ||
| int | channels | ||
| ) |
Meanshift filtering.
| [out] | d_out | image output |
| [in] | d_in | image input |
| [in] | mI | Number of rows in input image |
| [in] | nI | Number of columns in input image |
| [in] | space | radius in pixels, area for filtering |
| [in] | color | difference in color allowed, range depends on values in image |
| [in] | iter | maximum number of iterations for convergence (default 5, max 100) |
| [in] | channels | color channels, must be 1 (grayscale) or 3 (color)Meanshift image filter |