java.lang.Object
imagingbook.common.morphology.BinaryOutline
- All Implemented Interfaces:
BinaryMorphologyOperator
Implements a binary morphological dilation operation. See Sec. 7.2.7 of [1] for additional details.
[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).
- Version:
- 2022/09/18
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor, creates aBinaryOutline
operator using a 4-neighborhood by default (NeighborhoodType2D.N4
).Constructor, creates aBinaryOutline
operator using a the specified neighborhood type (NeighborhoodType2D
). -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(ByteProcessor ip) Applies this morphological operator to the specified image (destructively, that is, the image is modified).
-
Constructor Details
-
BinaryOutline
public BinaryOutline()Constructor, creates aBinaryOutline
operator using a 4-neighborhood by default (NeighborhoodType2D.N4
). -
BinaryOutline
Constructor, creates aBinaryOutline
operator using a the specified neighborhood type (NeighborhoodType2D
).- Parameters:
nh
- neighborhood type (NeighborhoodType2D
)
-
-
Method Details
-
applyTo
Description copied from interface:BinaryMorphologyOperator
Applies this morphological operator to the specified image (destructively, that is, the image is modified).- Specified by:
applyTo
in interfaceBinaryMorphologyOperator
- Parameters:
ip
- the image the operator is applied to
-