基于matlab染色体计数
I = imread('chrimage.bmp'); figure,imshow(I); I2 = rgb2gray(I); s = (I2); I4 = 255*ones(s(1), s(2), 'uint8'); I5 = imsubtract(I4,I2); I3 = (I5,[5 5]); I3 = imadjust(I3); bw = im2bw(I3, 0.3); bw = bwareaopen(bw, 10); figure,imshow(bw); [labeled,numObjects] = bwlabel(bw,4); RGB_label=(labeled,@spring,'c','shuffle'); figure,imshow(RGB_label);
版本:2014a
完整代码或代写加1564658423