Class ExtractSliceRange

Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
ExtractSliceRange
All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class ExtractSliceRange extends ChannelProviderUnary
Extracts slices from sliceStart (inclusive) to sliceEnd (inclusive).

If duplicate==true bean-property will ensure it is duplicated, and each channel has independent copies of the slices. If this is not needed duplicate==false results in less memory allocation and copying operations.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkMisconfigured(BeanInstanceMap defaultInstances)
     
    Channel
    createFromChannel(Channel channel)
     
    int
    Slice index to end extracting from (inclusive).
    int
    Slice index to start extracting from (inclusive).
    void
    setIndexEnd(int indexEnd)
    Slice index to end extracting from (inclusive).
    void
    setIndexStart(int indexStart)
    Slice index to start extracting from (inclusive).

    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

    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

    • ExtractSliceRange

      public ExtractSliceRange()
  • Method Details

    • checkMisconfigured

      public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
      Overrides:
      checkMisconfigured in class AnchorBean<ChannelProvider>
      Throws:
      BeanMisconfiguredException
    • createFromChannel

      public Channel createFromChannel(Channel channel)
      Specified by:
      createFromChannel in class ChannelProviderUnary
    • getIndexStart

      public int getIndexStart()
      Slice index to start extracting from (inclusive).
    • setIndexStart

      public void setIndexStart(int indexStart)
      Slice index to start extracting from (inclusive).
    • getIndexEnd

      public int getIndexEnd()
      Slice index to end extracting from (inclusive).
    • setIndexEnd

      public void setIndexEnd(int indexEnd)
      Slice index to end extracting from (inclusive).