Segmenting Lungs and nodules in CT images

后端 未结 2 773
轻奢々
轻奢々 2020-12-08 17:14

I am new with Image processing in Matlab, I am trying to segment LUNG and nodules from CT image. I have done initial image enhancement.

I searched lot on the same bu

2条回答
  •  执念已碎
    2020-12-08 18:03

    Try this:

    % dp6BK.png is your original image, I downloaded directly
    I = im2double(imread('dp6BK.png'));  
    I=I(:,:,1);
    imshow(I)
    
    
    cropped = I(50:430,8:500); %% Crop region of interest   
    thresholded = cropped < 0.35; %% Threshold to isolate lungs
    clearThresh = imclearborder(thresholded); %% Remove border artifacts in image   
    Liver = bwareaopen(clearThresh,100); %% Remove objects less than 100 pixels
    Liver1 = imfill(Liver,'hole'); % fill in the vessels inside the lungs
    figure,imshow(Liver1.*cropped)
    

    What you will get:

    enter image description here

提交回复
热议问题