Class CombineBase
Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
MaskProviderUnary
CombineBase
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
public abstract class CombineBase
extends MaskProviderUnary
Base class for combining two masks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMaskcreateFromMask(Mask mask) protected abstract MaskcreateFromTwoMasks(Mask maskToModify, Mask maskOther) Creates a mask from some combination of two masks.MaskProviderTheMaskProviderfor the second mask to be combined.voidsetReceive(MaskProvider receive) TheMaskProviderfor the second mask to be combined.Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary
get, getMask, setMaskMethods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStackMethods 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
-
CombineBase
public CombineBase()
-
-
Method Details
-
createFromMask
public Mask createFromMask(Mask mask) throws ProvisionFailedException - Specified by:
createFromMaskin classMaskProviderUnary- Throws:
ProvisionFailedException
-
createFromTwoMasks
protected abstract Mask createFromTwoMasks(Mask maskToModify, Mask maskOther) throws ProvisionFailedException Creates a mask from some combination of two masks.- Parameters:
maskToModify- first mask (which is also the mask modified with the result)maskOther- second mask (which is not modified)- Returns:
- either
maskToModifyormaskOtherdepending on implementation - Throws:
ProvisionFailedException- if the mask creation fails
-
getReceive
public MaskProvider getReceive()TheMaskProviderfor the second mask to be combined. -
setReceive
public void setReceive(MaskProvider receive) TheMaskProviderfor the second mask to be combined.
-