- All Implemented Interfaces:
PlugInFilter
,JavaDocHelp
Performs binary region segmentation, then displays each region's major axis (scaled by eccentricity) and equivalent
ellipse as a vector overlay. See Sec. 8.6.2 and 8.6.3 of [1] for additional details. This plugin expects a binary
(black and white) image with background = 0 and foreground > 0. Display lookup tables (LUTs) are not considered.
Eccentricity values are limited to MaxEccentricity
, axes are marked red if exceeded. Axes for regions with
NaN
eccentricity value (single-pixel regions) are not displayed. Axis and ellipse parameters are calculated
from the region's central moments. If no image is currently open, the plugin optionally loads a suitable sample
image.
[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).
- Version:
- 2022/12/08
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Color
Color used for drawing the major axis.static Color
Color used for drawing the major axis if maximum eccentricity exceeded.static double
Eccentricity scale factor applied to the length of the region's major axis.static double
Line width used for drawing the region's axes.static Color
Color used for drawing the region's center.static double
Line width used for drawing the region's center.static double
Size (radius) of the region's center mark.static Color
Color used for drawing the region's equivalent ellipse.static double
Maximum eccentricity, greater eccentricity values are clipped.static int
Minimum region size, smaller regions are ignored.static NeighborhoodType2D
Neighborhood type used for region segmentation (4- or 8-neighborhood).static boolean
Set true to show the regions's centroid.static boolean
Set true to show the region's equivalent ellipse.static boolean
Set true to show the region's major axis (length scaled by eccentricity).Fields inherited from interface ij.plugin.filter.PlugInFilter
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor, asks to open a predefined sample image if no other image is currently open. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface imagingbook.core.jdoc.JavaDocHelp
getJavaDocUrl
-
Field Details
-
Neighborhood
Neighborhood type used for region segmentation (4- or 8-neighborhood). -
AxisEccentricityScale
Eccentricity scale factor applied to the length of the region's major axis. -
MinRegionSize
Minimum region size, smaller regions are ignored. -
MaxEccentricity
Maximum eccentricity, greater eccentricity values are clipped. -
AxisColor
Color used for drawing the major axis. -
AxisColorCLipped
Color used for drawing the major axis if maximum eccentricity exceeded. -
CenterColor
Color used for drawing the region's center. -
EllipseColor
Color used for drawing the region's equivalent ellipse. -
AxisLineWidth
Line width used for drawing the region's axes. -
CenterMarkSize
Size (radius) of the region's center mark. -
CenterLineWidth
Line width used for drawing the region's center. -
ShowCenterMark
Set true to show the regions's centroid. -
ShowMajorAxis
Set true to show the region's major axis (length scaled by eccentricity). -
ShowEllipse
Set true to show the region's equivalent ellipse.
-
-
Constructor Details
-
Region_Eccentricity_Ellipse_Demo
public Region_Eccentricity_Ellipse_Demo()Constructor, asks to open a predefined sample image if no other image is currently open.
-
-
Method Details
-
setup
- Specified by:
setup
in interfacePlugInFilter
-
run
- Specified by:
run
in interfacePlugInFilter
-