Info
この質問は閉じられています。 編集または回答するには再度開いてください。
I want to diagnose disease malaria from blood sample. And I had done almost. But, there is a problem with the overlapped rbc. How to extract overlapped rbc from blood smear image?
1 回表示 (過去 30 日間)
古いコメントを表示
This is my code.
% Find image size
[m,n,numChannels] = size(im);
bw1=k_means(im*1.2);
bw1=im2bw(bw1);
bw2=bw1;
% Find Image Properties
reg_pro=regionprops(bw2,'all');
% Find small regions
for i=1:length(reg_pro)
if reg_pro(i).Area>100000
reg_pro(i).PixelIdxList=1;
end
end
% Save each images seperately as png
bboxes = [];
fnNum = 1;
fprintf('\nSaving Individual RBC images...')
for i=1:length(reg_pro)
k=reg_pro(i).BoundingBox;
if k(3)>50 && k(4)>50 && k(4)/k(3)<2 && k(4)/k(3)>.6
g=imcrop(im,[k]);
imwrite(g,strcat(segmentedPath,num2str(fnNum),'.png'));
imshow(g)
bboxes = [bboxes ; k];
% if dbug
% imshow(g)
% pause(.1)
% end
fnNum = fnNum + 1;
end
end
2 件のコメント
Image Analyst
2018 年 9 月 23 日
No idea, since you're not sharing your image. In the meantime, see
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!