Class MergeWithOptionalDistanceConstraint
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
MergeGreedyToIncreaseObjectFeature
,MergeWithFeature
Expands
MergeBase
by optionally imposing a maximum-distance requirement between objects
that are possibly merged.- Author:
- Owen Feehan
-
Nested Class Summary
Nested classes/interfaces inherited from class org.anchoranalysis.plugin.image.bean.object.provider.merge.MergeBase
MergeBase.MergeObjects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn optional maximum distance between objects that can be merged.boolean
If true, suppresses the Z-dimension when calculating distances between objects.protected BeforeCondition
Creates aBeforeCondition
that checks the distance between objects before merging.void
setMaxDistance
(UnitValueDistance maxDistance) An optional maximum distance between objects that can be merged.void
setSuppressZ
(boolean suppressZ) If true, suppresses the Z-dimension when calculating distances between objects.Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.merge.MergeBase
getDimensions, mergeMultiplex, resolutionRequired, setDimensions, unitConvertOptional
Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.WithContainerBase
containerOptional, containerRequired, getObjectsContainer, setObjectsContainer
Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
createFromObjects, get, getObjects, setObjects
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MergeWithOptionalDistanceConstraint
public MergeWithOptionalDistanceConstraint()
-
-
Method Details
-
maybeDistanceCondition
Creates aBeforeCondition
that checks the distance between objects before merging.- Returns:
- a
BeforeCondition
that enforces the distance constraint ifmaxDistance
is set, otherwise a condition that always returns true
-
isSuppressZ
public boolean isSuppressZ()If true, suppresses the Z-dimension when calculating distances between objects. -
setSuppressZ
public void setSuppressZ(boolean suppressZ) If true, suppresses the Z-dimension when calculating distances between objects. -
getMaxDistance
An optional maximum distance between objects that can be merged. -
setMaxDistance
An optional maximum distance between objects that can be merged.
-