Class MergeGreedyToIncreaseObjectFeature
- All Implemented Interfaces:
- Provider<ObjectCollection>
Naive greedy merge strategy when any two neighboring objects are merged if it increases a
 feature.
 
No guarantee exists over the priority over which merges occur, so any inferior merge could occur before a superior one, as long as both merges fulfill the conditions.
A merge occurs if the feature is increased in the merge object compared to both pre-merged
 objects i.e. feature(merged) > feature(object1) and feature(merged) >
 feature(object2).
- Author:
- Owen Feehan
- 
Nested Class SummaryNested classes/interfaces inherited from class org.anchoranalysis.plugin.image.bean.object.provider.merge.MergeBaseMergeBase.MergeObjects
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateFromObjects(ObjectCollection objectsSource) Creates aObjectCollectiongiven the entity provided by the delegate.booleanvoidsetFeatureEvaluator(FeatureEvaluator<FeatureInputSingleObject> featureEvaluator) voidsetReplaceWithMidpoint(boolean replaceWithMidpoint) Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.merge.MergeWithOptionalDistanceConstraintgetMaxDistance, isSuppressZ, maybeDistanceCondition, setMaxDistance, setSuppressZMethods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.merge.MergeBasegetDimensions, mergeMultiplex, resolutionRequired, setDimensions, unitConvertOptionalMethods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.WithContainerBasecontainerOptional, containerRequired, getObjectsContainer, setObjectsContainerMethods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnaryget, getObjects, setObjectsMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBeangetInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBeancheckMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
- 
Constructor Details- 
MergeGreedyToIncreaseObjectFeaturepublic MergeGreedyToIncreaseObjectFeature()
 
- 
- 
Method Details- 
createFromObjectspublic ObjectCollection createFromObjects(ObjectCollection objectsSource) throws ProvisionFailedException Description copied from class:ObjectCollectionProviderUnaryCreates aObjectCollectiongiven the entity provided by the delegate.- Specified by:
- createFromObjectsin class- ObjectCollectionProviderUnary
- Parameters:
- objectsSource- the entity provided by the delegate.
- Returns:
- the created ObjectCollectionthat is returned by the provider.
- Throws:
- ProvisionFailedException- if the provider cannot complete successfully.
 
- 
isReplaceWithMidpointpublic boolean isReplaceWithMidpoint()
- 
setReplaceWithMidpointpublic void setReplaceWithMidpoint(boolean replaceWithMidpoint) 
- 
getFeatureEvaluator
- 
setFeatureEvaluator
 
-