Hello, I am interested in getting some input about using MATLAB's image processing app. I want to obtain a binary image of my area of interest so I can perform some basic analysis (calculate area, path length, etc.).
I want to know if what I describe below is possible in MATLAB or not. I will show the process that I have gone through so far and any input would be greatly appreciated.
Progress Thus Far:
Raw = imread('3351_Coronal_CRotated0964.bmp');
Raw_Adjusted = imadjust(Raw);
BW_Original = imbinarize(Raw_Adjusted,'adaptive','Sensitivity',0.6);
BW_Inverse = imcomplement(BW_Original);
title('Inverted Binary Image')
BW_Cropped = imcrop(BW_Inverse,[900,1000,825,500]);
Segmented = bwpropfilt(BW_Cropped,'Area',1);
title('Semi-Isolated Cropped Image')
Next Steps/Moving Forward
I want the final product to include only the squiggly line running horizontal, outlines below in red, and get rid of the sections that are outline in blue. (i.e. turn them black)
Any guidance would be greatly appreciated, thank you for reading my question.