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 TypeMethodDescriptionvoid
checkMisconfigured
(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.createFromChannel
(Channel channel) Creates aChannel
given the entity provided by the delegate.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
-
Constructor Details
-
ExtractSliceRange
public ExtractSliceRange()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBean
Checks that a bean's properties conform to expectations.- Overrides:
checkMisconfigured
in classAnchorBean<ChannelProvider>
- Parameters:
defaultInstances
- all available default instances if theDefaultInstance
annotation is used- Throws:
BeanMisconfiguredException
- if the bean has not been configured properly as XML
-
createFromChannel
Description copied from class:ChannelProviderUnary
Creates aChannel
given the entity provided by the delegate.- Specified by:
createFromChannel
in classChannelProviderUnary
- Parameters:
channel
- the entity provided by the delegate.- Returns:
- the created
Channel
that 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).
-