Class FromChannel

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromChannelBase
FromChannel
All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class FromChannel extends FromChannelBase
Creates a mask from an existing channel, reusing the channel's buffer and considering all 0 values as off, and 255 values as on.

No check occurs to see if the channel contains voxels that are neither 0 nor 255 but the user should not pass such a channel, as behaviour is undefined.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Mask
    createFromSource(Channel source)
    Creates a Mask from the source Channel.

    Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromChannelBase

    get, getChannel, setChannel

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

    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

    • FromChannel

      public FromChannel()
  • Method Details

    • createFromSource

      protected Mask createFromSource(Channel source) throws CreateException
      Description copied from class: FromChannelBase
      Creates a Mask from the source Channel.
      Specified by:
      createFromSource in class FromChannelBase
      Parameters:
      source - the source channel
      Returns:
      the created mask
      Throws:
      CreateException - if the mask creation fails