Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Image Analyst
el 23 de Sept. de 2018
No idea, since you're not sharing your image. In the meantime, see
Respuestas (0)
La pregunta está cerrada.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!