I'm trying to use the imdist function after plotting a graph. I'm not entirely sure how I can use the imdist to save the distance that I'm interested in and then perform additional calculations.
My code is as follows:
plot(x, y, 'b.')
plot(x1, y1, 'r.')
h = imdistline;
fcn = makeConstrainToRectFcn('imline',...
Any help will be appreciated. Thanks!