Code covered by the BSD License  

Highlights from
Mean shift pixel cluster

3.0 | 7 ratings Rate this file 202 Downloads (last 30 days) File Size: 190 KB File ID: #40990 Version: 1.1
image thumbnail

Mean shift pixel cluster


Yue Wu (view profile)


28 Mar 2013 (Updated )

This toy code implements the classic and basic pixel clustering using mean shifts

| Watch this File

File Information

This is a good demo of showing how the mean shift idea works for image pixel clustering.

Required Products Image Processing Toolbox
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
04 May 2015 TDJIO

TDJIO (view profile)

17 Jul 2014 Mingming

I run it in matlab 2014a by test another jpg file. The whole matlab becomes no response at all. I get no result.

27 Apr 2014 Jincheng Pang  
14 Apr 2014 Hussein

How to use this to cluster 3D points?

Comment only
21 Feb 2014 prabhjot singh

i need this picture of parrot sir will u please mail this image on

10 Jan 2014 Nathan Orloff

I tried this code. I can't get it to work. I am getting this error.

Subscript indices must either be real positive integers or logicals.

Error in meanShiftPixCluster (line 111)
intensityKernel = repmat( prod( reshape( weight_map(
xDiffSq+1 ), height, width, depth) , 3 ), [1,1, depth]);

My image is a double. So grayscale.

05 Nov 2013 Mohammed  
06 Jun 2013 Milani

Milani (view profile)

Thank you

02 Dec 2013 1.1

11/30: fixed one previous bug reported by users, and added new figures to visualize differences before and after applying meanshift pixel clustering.

Contact us