public abstract class Mark extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
|
Mark() |
protected |
Mark(Mark source)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
abstract BoundingBox |
box(Dimensions dimensions,
int regionID) |
abstract BoundingBox |
boxAllRegions(Dimensions dimensions) |
abstract Point3d |
centerPoint() |
ObjectMask |
deriveObject(Dimensions dimensions,
RegionMembershipWithFlags region,
BinaryValuesByte binaryValues)
Create a
ObjectMask representation of the Mark . |
abstract Mark |
duplicate() |
boolean |
equalsDeep(Mark mark) |
boolean |
equalsID(Object obj) |
int |
getIdentifier() |
abstract String |
getName() |
String |
identifier() |
abstract byte |
isPointInside(Point3i point) |
abstract int |
numberDimensions() |
abstract int |
numberRegions() |
Optional<QuickOverlapCalculation> |
quickOverlap()
An alternative "quick" metric for overlap for a
Mark . |
abstract void |
scale(ScaleFactor scaleFactor)
Scales the mark in X and Y dimensions.
|
void |
setId(int id) |
abstract String |
toString()
String representation of the
Mark . |
abstract double |
volume(int regionID) |
protected Mark(Mark source)
source
- source to copy frompublic Mark()
public abstract byte isPointInside(Point3i point)
public abstract Mark duplicate()
public abstract int numberRegions()
public abstract String getName()
public Optional<QuickOverlapCalculation> quickOverlap()
Mark
.public abstract double volume(int regionID)
public abstract void scale(ScaleFactor scaleFactor) throws CheckedUnsupportedOperationException
scaleFactor
- how much to scale by.CheckedUnsupportedOperationException
- if the type of mark used in the annotation does
not supported scaling.public abstract int numberDimensions()
public abstract Point3d centerPoint()
public abstract BoundingBox box(Dimensions dimensions, int regionID)
public abstract BoundingBox boxAllRegions(Dimensions dimensions)
public boolean equalsID(Object obj)
public boolean equalsDeep(Mark mark)
public ObjectMask deriveObject(Dimensions dimensions, RegionMembershipWithFlags region, BinaryValuesByte binaryValues)
ObjectMask
representation of the Mark
.
i.e. the Mark
is converted into voxels within a bounding-box.
The ObjectMask
is forced to entirely be contained within dimensions
.
dimensions
- the size of the image in which the Mark
resides.region
- which region(s) of the Mark
to voxelize.binaryValues
- how to encode on and off voxels in the created ObjectWithProperties
.ObjectMask
with associated properties.public String identifier()
public int getIdentifier()
public void setId(int id)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.