Class ConvertWithHistogram<T>

Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
ConvertBase
ConvertWithHistogram<T>
Type Parameters:
T - the buffer-type to convert the channel to
All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class ConvertWithHistogram<T> extends ConvertBase
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Channel
    createFromChannel(Channel channel)
     
    ConvertChannelToWithHistogram<T>
     
    HistogramProvider
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ConvertWithHistogram

      public ConvertWithHistogram()
  • Method Details

    • createFromChannel

      public Channel createFromChannel(Channel channel) throws ProvisionFailedException
      Specified by:
      createFromChannel in class ChannelProviderUnary
      Throws:
      ProvisionFailedException
    • getConvert

      public ConvertChannelToWithHistogram<T> getConvert()
    • setConvert

      public void setConvert(ConvertChannelToWithHistogram<T> convert)
    • getHistogram

      public HistogramProvider 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

      public void setHistogram(HistogramProvider histogram)
      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.