Splitting the image matrix into two matrix based on a condition

1 view (last 30 days)
I have two parallel lines from edge detection. Now I want to measure the distance between each upper pixel of the above line and the lower pixel of the below line. So is there anyway I can do this. My plan was to create a new matrix for the above line and the below line and then find the difference between these two lines. It would be really helpful if someone can help me with the code. As I'm new to MATLAB.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Products


Release

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!