I want to find the maximum distance between two points in a polygon made in MATLAB using roipoly. Then I want to find another line which is longest and which is perpendicular to the line joining points of maximum distance.
I was able to find the maximum distance points and make a line.(Figure attached) Now I want to find the maximum perpendicular distance to that line..
Any one who can help with MATLAB code for the same please revert back
Thanking you.
Regards