Class DeriveObjectFromPoints
Object
org.anchoranalysis.image.voxel.object.DeriveObjectFromPoints
public class DeriveObjectFromPoints extends Object
Derive an
ObjectMask by incrementally adding points.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description DeriveObjectFromPoints() -
Method Summary
Modifier and Type Method Description voidadd(ReadableTuple3i point)Adds a point to the object.Optional<ObjectMask>deriveObject()Derives anObjectMaskthat includes all points that were previously added.
-
Constructor Details
-
DeriveObjectFromPoints
public DeriveObjectFromPoints()
-
-
Method Details
-
add
Adds a point to the object.- Parameters:
point- the point to add.
-
deriveObject
Derives anObjectMaskthat includes all points that were previously added.The bounding-box of the created
ObjectMaskwill fit the points as tightly as possible.- Returns:
- a newly created
ObjectMaskif at least one point was added. OtherwiseOptional.empty().
-