public abstract class MorphologicalOperatorBase extends MaskProviderUnary
BinaryVoxels
.Constructor and Description |
---|
MorphologicalOperatorBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
applyMorphologicalOperation(Mask source,
boolean do3D) |
Mask |
createFromMask(Mask mask)
Creates a
Mask given the entity provided by the delegate. |
ChannelProvider |
getBackgroundChannelProvider() |
int |
getIterations() |
int |
getMinIntensityValue() |
boolean |
isSuppress3D() |
protected Optional<java.util.function.Predicate<Point3i>> |
precondition() |
void |
setBackgroundChannelProvider(ChannelProvider backgroundChannelProvider) |
void |
setIterations(int iterations) |
void |
setMinIntensityValue(int minIntensityValue) |
void |
setSuppress3D(boolean suppress3D) |
get, getMask, setMask
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected abstract void applyMorphologicalOperation(Mask source, boolean do3D) throws ProvisionFailedException
ProvisionFailedException
public Mask createFromMask(Mask mask) throws ProvisionFailedException
MaskProviderUnary
Mask
given the entity provided by the delegate.createFromMask
in class MaskProviderUnary
mask
- the entity provided by the delegate.Mask
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.protected Optional<java.util.function.Predicate<Point3i>> precondition() throws ProvisionFailedException
ProvisionFailedException
public ChannelProvider getBackgroundChannelProvider()
public void setBackgroundChannelProvider(ChannelProvider backgroundChannelProvider)
public int getIterations()
public void setIterations(int iterations)
public int getMinIntensityValue()
public void setMinIntensityValue(int minIntensityValue)
public boolean isSuppress3D()
public void setSuppress3D(boolean suppress3D)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.