필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Clustering problem with Kmeans

조회 수: 1 (최근 30일)
ameen selami
ameen selami 2013년 3월 21일
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.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by