Hi! I'm a student who study MATLAB my own.
In the image below I want to remove the connected lines that the red arrow points to and leave only the lines in the yellow box.
The final thing I want to do is count the number of pixels in the yellow box, so we will use the regionprops function.
I am wondering if there is a way to remove the connected lines pointed to by the yellow arrow and get the count when using the regionprops function.
I would be grateful if the experts would help me a little.