Documentation
|
|
The C++ interface for meanshift. More...
| array | meanshift (const array &image, const float space, const float color, const int iter=5) |
| 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.
| array af::meanshift | ( | const array & | image, |
| const float | space, | ||
| const float | color, | ||
| const int | iter = 5 |
||
| ) |
Meanshift filtering.
| [in] | image | input image |
| [in] | space | radius in pixels, area for filtering. note: internally space *= 1.5 |
| [in] | color | difference in color allowed, range depends on values in image |
| [in] | iter | maximum number of iterations for convergence (default=5, max=100) |
color range depends on values in the image if image is [0-1], scale color from [0-1]; if image is [0-255], scale color from [0-255];