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 aChannel
given the entity provided by the delegate.If set, a histogram used in conversion to describe input intensities (across perhaps multiple images).void
setConvert
(ConvertChannelToWithHistogram<T> convert) void
setHistogram
(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, setChangeExisting
Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannel
Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods 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:ChannelProviderUnary
Creates aChannel
given the entity provided by the delegate.- Specified by:
createFromChannel
in classChannelProviderUnary
- Parameters:
channel
- the entity provided by the delegate.- Returns:
- the created
Channel
that 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.
-