Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Image Analyst
am 23 Sep. 2018
No idea, since you're not sharing your image. In the meantime, see
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!