Class Ellipse_Closest_Points_Demo

java.lang.Object
Ch11_Circle_Ellipse_Fitting.Ellipse_Closest_Points_Demo
All Implemented Interfaces:
PlugIn, JavaDocHelp

public class Ellipse_Closest_Points_Demo extends Object implements PlugIn, JavaDocHelp

This plugin creates a new image with an ellipse and a set of random points. For each point, the closest (contact) point on the ellipse is calculated and a connecting line is drawn to a vector overlay. Two closest-point algorithms are available (see Secs. 11.2.2 and 11.2.3 of [1] for additional details):

  1. orthogonal, exact closest point (exact but iterative) and
  2. approximate confocal conic closest point estimation (only approximate but non-iterative).

The random seed may be specified for repeatability of experiments.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).