Class WithRadiusBase
Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
WithRadiusBase
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
- Direct Known Subclasses:
BackgroundSubtractor,WithFilterBase
public abstract class WithRadiusBase
extends ChannelProviderUnary
A
ChannelProviderUnary with a 'radius' parameter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChannelcreateFromChannel(Channel channel) protected abstract ChannelcreateFromChannel(Channel channel, int radius) Creates a new channel from an existing channel and a radius.doubleThe radius of the operation.booleanIf true, treats the radius as being in meters.voidsetRadius(double radius) The radius of the operation.voidsetRadiusInMeters(boolean radiusInMeters) If true, treats the radius as being in meters.Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
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
-
WithRadiusBase
public WithRadiusBase()
-
-
Method Details
-
createFromChannel
public Channel createFromChannel(Channel channel) throws ProvisionFailedException - Specified by:
createFromChannelin classChannelProviderUnary- Throws:
ProvisionFailedException
-
createFromChannel
protected abstract Channel createFromChannel(Channel channel, int radius) throws ProvisionFailedException Creates a new channel from an existing channel and a radius.- Parameters:
channel- the inputChannelradius- the radius in voxels- Returns:
- the newly created
Channel - Throws:
ProvisionFailedException- if the channel creation fails
-
getRadius
public double getRadius()The radius of the operation. -
setRadius
public void setRadius(double radius) The radius of the operation. -
isRadiusInMeters
public boolean isRadiusInMeters()If true, treats the radius as being in meters. Otherwise, it's in voxels. -
setRadiusInMeters
public void setRadiusInMeters(boolean radiusInMeters) If true, treats the radius as being in meters. Otherwise, it's in voxels.
-