Class ChannelProviderUnary
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
- Direct Known Subclasses:
AnisotropicDiffusion,AssignFromDictionary,AssignFromIntersectingObjects,Blur,ConvertBase,Duplicate,EdgeFilterIJ,ExtractCenterSlice,ExtractSliceRange,GaussianBlur2D,GradientBase,IfParamEquals,IfVoxelZero,Invert,LevelPerObjectBase,MaximumIntensityProjection,MeanIntensityProjection,Median,MedianFilter3D,MinimumFilter,QuantileStretch,ScaleXY,UnaryWithMaskBase,UnaryWithObjectsBase,UnaryWithValueBase,WithRadiusBase
Implementation of
ChannelProvider that calls a single delegate ChannelProvider.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ChannelcreateFromChannel(Channel channel) Creates aChannelgiven the entity provided by the delegate.get()Gets or creates an object of typeT.The delegateChannelProviderthat is called.voidsetChannel(ChannelProvider channel) The delegateChannelProviderthat is called.Methods 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
-
ChannelProviderUnary
protected ChannelProviderUnary()
-
-
Method Details
-
get
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
createFromChannel
Creates aChannelgiven the entity provided by the delegate.- Parameters:
channel- the entity provided by the delegate.- Returns:
- the created
Channelthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getChannel
The delegateChannelProviderthat is called. -
setChannel
The delegateChannelProviderthat is called.
-