Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
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 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Image Analyst
le 23 Sep 2018
No idea, since you're not sharing your image. In the meantime, see
Réponses (0)
Cette question est clôturée.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!