Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Clustering problem with Kmeans

1 visualización (últimos 30 días)
ameen selami
ameen selami el 21 de Mzo. de 2013
hello every body .. i really need your help .. i cant understand why the following instructions are not processing using the (kmeans instruction).
x = imread('H:\Research\MRI Tumor\T1\zena\6.jpg'); figure; imshow(x)
cform = makecform('srgb2lab');
lab_x = applycform(x,cform); figure imshow(lab_x);
ab = double(lab_x(:,:,2:3)); nrows = size(ab,1); ncols = size(ab,2); ab = reshape(ab,nrows*ncols,2); figure imshow(ab);
nColors = 3; [cluster_idx cluster_center] = kmeans the error (ab,nColors,'distance','sqEuclidean','Replicates',3);
pixel_labels = reshape(cluster_idx,nrows,ncols); figure; imshow(pixel_labels,[]);
the error happence in the kmeans instruction and it says (empty cluster occurs) .. by the way the image is a brain MRI image with a JPG extension. thanks allot .. please help ASAP.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by