public class BinarySegmentationReference extends BinarySegmentation
BinarySegmentation
that is located by a unique identifier.
The identifier locates an entity from the shared-objects passed during initialization in the
ImageInitialization
.
Constructor and Description |
---|
BinarySegmentationReference() |
Modifier and Type | Method and Description |
---|---|
String |
getId()
The identifier of the existing
BinarySegmentation to use. |
void |
onInitialization(ImageInitialization initialization)
Called after initialization.
|
BinaryVoxels<UnsignedByteBuffer> |
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 |
setId(String id)
The identifier of the existing
BinarySegmentation to use. |
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void onInitialization(ImageInitialization initialization) throws InitializeException
InitializableBean
onInitialization
in class InitializableBean<BinarySegmentation,ImageInitialization>
initialization
- parameters used for initialization.InitializeException
- if initialization does not successfully complete.public BinaryVoxels<UnsignedByteBuffer> segment(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask) throws SegmentationFailedException
BinarySegmentation
segment
in class BinarySegmentation
voxels
- voxels to segment.parameters
- parameters to guide the algorithm.objectMask
- if present, segmentation only occurs inside this object.voxels
, depending on implementation.SegmentationFailedException
- if the segmentation cannot be successfully completed.public String getId()
BinarySegmentation
to use.public void setId(String id)
BinarySegmentation
to use.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.