Fit ellipse

Fit ellipses to all objects in a collection using ImageJ's built-in ellipse fitter.

Description

Fit ellipses to all objects in a collection using ImageJ's built-in ellipse fitter. For 3D objects, a 2D projection in the XY plane is used for fitting. Fit ellipses can be stored either as new objects, or replacing the input object coordinates.

Note: If updating input objects with ellipse coordinates, measurements associated with the input object (e.g. spatial measurements) will still be available, but may no longer be valid.

Parameters

ParameterDescription
Input objectsObjects from workspace to which ellipses will be fit. Objects stored in 3D will be projected into the XY 2D plane (using the "Project objects" module) prior to fitting. If a projected object is used, any output measurements and relationships are still applied to the input object (the projected object is discarded after use). Measurements made by this module are associated with these input objects, irrespective of whether the fit ellipses are also stored as objects.
Fitting modeControls which object coordinates are used for ellipse fitting:
  • "Fit to whole" All coordinates for the input object are passed to the ellipse fitter.
  • "Fit to surface" (default) Only surface coordinates of the input object are passed to the ellipse fitter. Surface coordinates are calculated using 4-way connectivity.
Limit axis lengthWhen selected, all axes of the the fit ellipses must be shorter than the length specified by "Maximum axis length". This helps filter out mis-fit ellipses and prevents unnecessary, massive memory use when storing ellipses.
Maximum axis lengthMaximum length of any fit ellipse axis as measured in pixel units. This is onyl used if "Limit axis length" is selected.
Object output modeControls whether the fit ellipse is stored as an object in the workspace:
  • "Create new objects" Fit ellipses are stored as new objects in the workspace (name specified by "Output objects"). Ellipses are "solid" objects, irrespective of whether they were only fit to input object surface coordinates. Ellipse objects are children of the input objects to which they were fit. If outputting ellipse objects, any measurements are still only applied to the corresponding input objects.
  • "Do not store" (default) The ellipse coordinates are not stored.
  • "Update input objects" The coordinates of the input object are removed and replaced with the fit ellipse coordinates. Note: Measurements associated with the input object (e.g. spatial measurements) will still be available, but may no longer be valid.
Output objectsName assigned to output ellipse objects if "Object output mode" is in "Create new objects" mode.
Enable multithreadingProcess multiple input objects simultaneously. This can provide a speed improvement when working on a computer with a multi-core CPU.