Original Post
Hi, I have an ellipse drawn on a bitmap. So I have every cartesian edge point available to me. I have to find the maximum diameter of the ellipse, which is simple, I just find the greatest distance between all point pairs of the ellipse edge. The next thing I have to do is find the greatest perpendicular diameter to the above line. I thought I could simply get the slope of the max diameter, get its negative reciprocal, and now I have a slope that defines its perpendicular. I try going through all the available edge points again to find pairs that ave that perpendicular line slope, but it is unlikely that any will perfectly match the perpendicular slope, because the points are just integers from a raster device. So how do we find the max perpendicular? I know it's possible but haven't been able to find any examples online yet. Thanks