From: Steven on
Hi

I need to measure the distance between two lines on an image. I'd like to use imdistline, but I need to constrain it a few ways that I am not seeing how to do.

I'd like to constrain imdistline to be exactly vertical. I can MEASURE the angle, but I don't see a way to constrain the angle.

I'd like to constrtain imdisline to have end points on two other lines (or a line and the edge of a rectangle). I don't see how to do that.

Any suggestions?

(Maybe imdistline is not the right function, but ....)