Class MorphologicalIterations
Specifies a certain number of iterations of the morphological operations of dilation and erosion.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
copyChangeIterationsDilation
(int iterationsDilationsToAssign) Creates a copy of this bean with a new value foriterationsDilation
.Creates a string that uniquely identifies all properties in the bean, in a human-friendly format.boolean
int
Number of times to perform morphological dilation.int
Number of times to perform morphological erosion.int
hashCode()
boolean
Checks if at least one ofiterationsDilation
anditerationsErosion
is more than 0.boolean
isDo3D()
Whether to perform the morphological dimensions in 3D or 2D.void
setDo3D
(boolean do3D) Whether to perform the morphological dimensions in 3D or 2D.void
setIterationsDilation
(int iterationsDilation) Number of times to perform morphological dilation.void
setIterationsErosion
(int iterationsErosion) Number of times to perform morphological erosion.Creates a string that uniquely identifies all properties in the bean, in a compact format.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MorphologicalIterations
public MorphologicalIterations()
-
-
Method Details
-
isAtLeastOnePositive
public boolean isAtLeastOnePositive()Checks if at least one ofiterationsDilation
anditerationsErosion
is more than 0.- Returns:
- true if at least one of the iteration counts is positive, false otherwise
-
describePropertiesFriendly
Creates a string that uniquely identifies all properties in the bean, in a human-friendly format.- Returns:
- a human-friendly string describing all properties
-
uniquelyIdentifyAllProperties
Creates a string that uniquely identifies all properties in the bean, in a compact format.- Returns:
- a compact string uniquely identifying all properties
-
copyChangeIterationsDilation
Creates a copy of this bean with a new value foriterationsDilation
.- Parameters:
iterationsDilationsToAssign
- the new value for iterationsDilation- Returns:
- a new
MorphologicalIterations
instance with the updated iterationsDilation value
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getIterationsDilation
public int getIterationsDilation()Number of times to perform morphological dilation. -
setIterationsDilation
public void setIterationsDilation(int iterationsDilation) Number of times to perform morphological dilation. -
getIterationsErosion
public int getIterationsErosion()Number of times to perform morphological erosion. -
setIterationsErosion
public void setIterationsErosion(int iterationsErosion) Number of times to perform morphological erosion. -
isDo3D
public boolean isDo3D()Whether to perform the morphological dimensions in 3D or 2D. -
setDo3D
public void setDo3D(boolean do3D) Whether to perform the morphological dimensions in 3D or 2D.
-