Class SliceAt
- All Implemented Interfaces:
Provider<ObjectCollection>
Extracts a specific slice from a collection of 3D objects.
This class extends ObjectCollectionProviderUnary
to provide functionality for
extracting a 2D slice at a specified z-index from a collection of 3D objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.int
getIndex()
Index in z-dimension of slice to extract.void
setIndex
(int index) Index in z-dimension of slice to extract.Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjects
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
-
Constructor Details
-
SliceAt
public SliceAt()
-
-
Method Details
-
createFromObjects
Description copied from class:ObjectCollectionProviderUnary
Creates aObjectCollection
given the entity provided by the delegate.- Specified by:
createFromObjects
in classObjectCollectionProviderUnary
- Parameters:
objects
- the entity provided by the delegate.- Returns:
- the created
ObjectCollection
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getIndex
public int getIndex()Index in z-dimension of slice to extract. -
setIndex
public void setIndex(int index) Index in z-dimension of slice to extract.
-