Class Region_Contours_Demo

java.lang.Object
Ch08_Binary_Regions.Region_Contours_Demo
All Implemented Interfaces:
PlugInFilter, JavaDocHelp

public class Region_Contours_Demo extends Object implements PlugInFilter, JavaDocHelp

This ImageJ plugin demonstrates the use of the class RegionContourSegmentation to perform both region labeling and contour tracing simultaneously. See Sec. 8.2.2 of [1] for additional details. Requires a binary image. Zero-value pixels are considered background, all other pixels are foreground. Display lookup tables (LUTs) are not considered. The resulting contours are displayed as a non-destructive vector overlay on the original image. Outer contours of single-pixel regions are marked by an "X". If no image is currently open, the plugin optionally loads a suitable sample image.

This plugin also demonstrates the use of the ShapeOverlayAdapter (provided by the imagingbook library) which handles 0.5 pixel offsets for vector graphics transparently.

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

Version:
2020/12/20, 2022/09/27 revised overlay generation
See Also: