I'd like to measure the shortest distance between two dark portion. The distance line segment should cross the red point on the image. The black and white background are logical values. The background matrix and the red point are known (attached as data.mat). I tried polyxpoly() but failed to use it. Any ideas? Thanks!
MATLAB: Measure Line Segment Length Cross One Fixed Point
image analysisimage processingImage Processing Toolbox
Best Answer