[−][src]Function opencv::cudaimgproc::mean_shift_filtering
pub fn mean_shift_filtering(
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
sp: i32,
sr: i32,
criteria: TermCriteria,
stream: &mut Stream
) -> Result<()>
Performs mean-shift filtering for each point of the source image.
Parameters
- src: Source image. Only CV_8UC4 images are supported for now.
- dst: Destination image containing the color of mapped points. It has the same size and type as src .
- sp: Spatial window radius.
- sr: Color window radius.
- criteria: Termination criteria. See TermCriteria.
- stream: Stream for the asynchronous version.
It maps each point of the source image into another point. As a result, you have a new color and new position of each point.
C++ default parameters
- criteria: TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS,5,1)
- stream: Stream::Null()