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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) ChannelcreateFromChannel(Channel channel) 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
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException - Overrides:
checkMisconfiguredin classAnchorBean<ChannelProvider>- Throws:
BeanMisconfiguredException
-
createFromChannel
public Channel createFromChannel(Channel channel) - Specified by:
createFromChannelin classChannelProviderUnary
-
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).
-