Class Sequence
Performs a sequence of succesive segmentations
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkMisconfigured
(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.getList()
A list of binary-segmentations that are applied successively (the output of the predecessor becomes the input of the sucecssor)segment
(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask) Performs a segmentation on voxels so that each voxel has an on or off state after the operation.void
setList
(List<BinarySegmentation> list) A list of binary-segmentations that are applied successively (the output of the predecessor becomes the input of the sucecssor)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
-
Sequence
public Sequence()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBean
Checks that a bean's properties conform to expectations.- Overrides:
checkMisconfigured
in classAnchorBean<BinarySegmentation>
- Parameters:
defaultInstances
- all available default instances if theDefaultInstance
annotation is used- Throws:
BeanMisconfiguredException
- if the bean has not been configured properly as XML
-
segment
public BinaryVoxels<UnsignedByteBuffer> segment(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask) throws SegmentationFailedException Description copied from class:BinarySegmentation
Performs a segmentation on voxels so that each voxel has an on or off state after the operation.- Specified by:
segment
in classBinarySegmentation
- Parameters:
voxels
- voxels to segment.parameters
- parameters to guide the algorithm.objectMask
- if present, segmentation only occurs inside this object.- Returns:
- voxels for a mask on the input-buffer, which may be newly-created, or may reuse the
input
voxels
, depending on implementation. - Throws:
SegmentationFailedException
- if the segmentation cannot be successfully completed.
-
getList
A list of binary-segmentations that are applied successively (the output of the predecessor becomes the input of the sucecssor) -
setList
A list of binary-segmentations that are applied successively (the output of the predecessor becomes the input of the sucecssor)
-