Class ConvertWithHistogram<T>
- Type Parameters:
T- the buffer-type to convert the channel to
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Converts a channel to a different voxel data-type by applying a converter with an associated
histogram.
The histogram can be either provided, or it will be derived from the image anew.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromChannel(Channel channel) Creates aChannelgiven the entity provided by the delegate.If set, a histogram used in conversion to describe input intensities (across perhaps multiple images).voidsetConvert(ConvertChannelToWithHistogram<T> convert) voidsetHistogram(HistogramProvider histogram) If set, a histogram used in conversion to describe input intensities (across perhaps multiple images).Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.convert.ConvertBase
createPolicy, isChangeExisting, setChangeExistingMethods 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
-
ConvertWithHistogram
public ConvertWithHistogram()
-
-
Method Details
-
createFromChannel
Description copied from class:ChannelProviderUnaryCreates aChannelgiven the entity provided by the delegate.- Specified by:
createFromChannelin classChannelProviderUnary- 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.
-
getConvert
-
setConvert
-
getHistogram
If set, a histogram used in conversion to describe input intensities (across perhaps multiple images). If unset, such a histogram is calculated from the current image. -
setHistogram
If set, a histogram used in conversion to describe input intensities (across perhaps multiple images). If unset, such a histogram is calculated from the current image.
-