Skip to content

Fit ellipsoid

Richard Domander edited this page Aug 9, 2018 · 1 revision

Finds the ellipsoid that best fits a set of point or multi-point ROIs in the ROI Manager. Fit Ellipsoid tries to find the ellipsoid by solving the equation of a quadric that best fits the points. There are no guarantees about the type of the quadric solved, so the plug-in may fail to find an ellipsoid. Generally speaking, the more points there are the more likely it is that en ellipsoid is found.

Fit ellipsoid

  • Menu path: Plugins>BoneJ>Fit ellipsoid
  • Input paremeters
    • ImagePlus inputImage
  • Output parameters
    • Table<DefaultColumn<String>, String> resultsTable
  • Calls
    • Quadric in net.imagej.imagej-ops
    • QuadricToEllipsoid in org.bonej.bone-ops (to be moved to net.imagej.imagej-ops or other fitting artefact)
Setup dialog
  • No setup dialog
Messages
  • If there's no image open
    • Show an error dialog
    • Abort the run
  • If the input image doesn't have three spatial dimensions
    • Show an error dialog
    • Abort the run
  • If the image has anisotropic voxel size (calibration)
    • Show a warning dialog
    • Abort the run, if user clicks Cancel
  • If there are less than 9 points (minimum needed for fitting)
    • Show an error dialog
    • Abort the run
  • If the fitted quadric is not an ellipsoid
    • Show an error dialog
    • Abort the run
Results
  • Radii and centroid coordinates of the fitted ellipsoid (SharedTable)
Differences from BoneJ1
  • Supports multi-point ROIs