I have code like this:
info = imfinfo('patient1_T1.png');
X = im2double(imread('patient1_T1','png'));
X = imadjust(X);
k = 4;
[L,C] = kmeans(X,k);
imagNew = reshape(X,512,512);
figure;imshow(imagNew,), title('image labeled by kmeans++ cluster ');
but i don't know how to display Label Every Pixel in the image using result kmeans++ and create image that segment
help me and thank...!
it's very good tutorial. Very good coding for matlap brain image processing.
but can you help how to segmenting brain white matter, gray matter and cerebrospinal fluid. if you have algoritm or code in matlab, help give me.
i really need....