pub fn mean_shift<T>(
) -> Array<T> where
T: HasAfEnum + RealNumber,
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.
inputarray is the input image
spatial_sigmais the spatial variance parameter that decides the filter window
chromatic_sigmais the chromatic variance parameter
iteris the number of iterations filter operation is performed
iscolorindicates if the input is color image or grayscale
Filtered Image - Array