Class ConvertBase

Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
ConvertBase
All Implemented Interfaces:
Provider<Channel>, ProviderAsStack
Direct Known Subclasses:
Convert, ConvertWithHistogram

public abstract class ConvertBase extends ChannelProviderUnary
Base class for channel providers that perform conversions on a single input channel.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ConversionPolicy
    Creates a ConversionPolicy based on the changeExisting property.
    boolean
    If true, the existing channel can be changed.
    void
    setChangeExisting(boolean changeExisting)
    If true, the existing channel can be changed.

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary

    createFromChannel, 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

    • ConvertBase

      public ConvertBase()
  • Method Details

    • createPolicy

      protected ConversionPolicy createPolicy()
      Creates a ConversionPolicy based on the changeExisting property.
      Returns:
      a ConversionPolicy that determines whether to change the existing channel or create a new one.
    • isChangeExisting

      public boolean isChangeExisting()
      If true, the existing channel can be changed. If false, a new channel must be created for any change.
    • setChangeExisting

      public void setChangeExisting(boolean changeExisting)
      If true, the existing channel can be changed. If false, a new channel must be created for any change.