MATLAB: How can i separate left and right lung in ct images

separate left/right lung

For my project i need to find the side of the lung(left/right).

Best Answer

There might be other ways...this is a simple logic.
data = imread('Image.jpg') ; % your image name
[m,n] = size(data) ;
left = data(1:end,1:n/2) ;
right = data(1:end,n/2+1:end) ;
figure
imshow(left) ; title('left lung') ;
figure
imshow(right) ; title('Right lung') ;
Related Question