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
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!