Class ExtractSliceRange
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.createFromChannel(Channel channel) Creates aChannelgiven the entity provided by the delegate.intSlice index to end extracting from (inclusive).intSlice index to start extracting from (inclusive).voidsetIndexEnd(int indexEnd) Slice index to end extracting from (inclusive).voidsetIndexStart(int indexStart) Slice index to start extracting from (inclusive).Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ExtractSliceRange
public ExtractSliceRange()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBeanChecks that a bean's properties conform to expectations.- Overrides:
checkMisconfiguredin classAnchorBean<ChannelProvider>- Parameters:
defaultInstances- all available default instances if theDefaultInstanceannotation is used- Throws:
BeanMisconfiguredException- if the bean has not been configured properly as XML
-
createFromChannel
Description copied from class:ChannelProviderUnaryCreates aChannelgiven the entity provided by the delegate.- Specified by:
createFromChannelin classChannelProviderUnary- Parameters:
channel- the entity provided by the delegate.- Returns:
- the created
Channelthat is returned by the provider.
-
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).
-