pub fn mean_shift<T>(
input: &Array<T>,
spatial_sigma: f32,
chromatic_sigma: f32,
iter: u32,
iscolor: bool
) -> Array<T> where
T: HasAfEnum + RealNumber,
Meanshift Filter.
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.
input
array is the input imagespatial_sigma
is the spatial variance parameter that decides the filter windowchromatic_sigma
is the chromatic variance parameteriter
is the number of iterations filter operation is performediscolor
indicates if the input is color image or grayscaleFiltered Image - Array
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4