Class MergeWithOptionalDistanceConstraint
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
WithContainerBase
MergeBase
MergeWithOptionalDistanceConstraint
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
MergeGreedyToIncreaseObjectFeature,MergeWithFeature
-
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 TypeMethodDescriptionUnitValueDistanceAn optional maximum distance between objects that can be merged.booleanIf true, suppresses the Z-dimension when calculating distances between objects.protected BeforeConditionCreates aBeforeConditionthat checks the distance between objects before merging.voidsetMaxDistance(UnitValueDistance maxDistance) An optional maximum distance between objects that can be merged.voidsetSuppressZ(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, unitConvertOptionalMethods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.WithContainerBase
containerOptional, containerRequired, getObjectsContainer, setObjectsContainerMethods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
createFromObjects, get, getObjects, setObjectsMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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 aBeforeConditionthat checks the distance between objects before merging.- Returns:
- a
BeforeConditionthat enforces the distance constraint ifmaxDistanceis 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
public UnitValueDistance getMaxDistance()An optional maximum distance between objects that can be merged. -
setMaxDistance
public void setMaxDistance(UnitValueDistance maxDistance) An optional maximum distance between objects that can be merged.
-