Class SegmentedObjectsAtScale
Object
org.anchoranalysis.image.inference.segment.SegmentedObjectsAtScale
public class SegmentedObjectsAtScale extends Object
Exposes a particular set of segmented-objects at a particular scale.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description SegmentedObjectsAtScale(List<LabelledWithConfidence<MultiScaleObject>> source, Function<MultiScaleObject,org.anchoranalysis.image.voxel.object.ObjectMask> extractObject, Stack background, org.anchoranalysis.image.bean.displayer.StackDisplayer displayer, ExecutionTimeRecorder executionTimeRecorder, String executionTimeSuffix) -
Method Summary
Modifier and Type Method Description Stackbackground()The background image associated with this particular scale.DisplayStackbackgroundDisplayStack()Likebackground()but instead creates aDisplayStack.org.anchoranalysis.spatial.box.Extentextent()The width and height and depth of the background image, associated with the objects.List<LabelledWithConfidence<org.anchoranalysis.image.voxel.object.ObjectMask>>listWithLabels()Create aListof all contained objects, including confidence.List<WithConfidence<org.anchoranalysis.image.voxel.object.ObjectMask>>listWithoutLabels()Create aListof all contained objects, including confidence.org.anchoranalysis.image.voxel.object.ObjectCollectionobjects()Create aObjectCollectionof all contained objects, excluding confidence.ObjectCollectionWithPropertiesobjectsWithProperties()Likeobjects()but instead creates aObjectCollectionWithPropertiescontaining empty properties.intsize()A count of the total number of elements in each representation.
-
Constructor Details
-
SegmentedObjectsAtScale
public SegmentedObjectsAtScale(List<LabelledWithConfidence<MultiScaleObject>> source, Function<MultiScaleObject,org.anchoranalysis.image.voxel.object.ObjectMask> extractObject, Stack background, org.anchoranalysis.image.bean.displayer.StackDisplayer displayer, ExecutionTimeRecorder executionTimeRecorder, String executionTimeSuffix)
-
-
Method Details
-
listWithLabels
public List<LabelledWithConfidence<org.anchoranalysis.image.voxel.object.ObjectMask>> listWithLabels()Create aListof all contained objects, including confidence.- Returns:
- a newly created
Listthat reuses the existingObjectMaskstored in the structure.
-
listWithoutLabels
Create aListof all contained objects, including confidence.- Returns:
- a newly created
Listthat reuses the existingObjectMaskstored in the structure.
-
objects
public org.anchoranalysis.image.voxel.object.ObjectCollection objects()Create aObjectCollectionof all contained objects, excluding confidence.- Returns:
ObjectCollectionderived fromsourceand cached.
-
objectsWithProperties
Likeobjects()but instead creates aObjectCollectionWithPropertiescontaining empty properties.- Returns:
- an
ObjectCollectionderived fromobjects()and cached.
-
backgroundDisplayStack
Likebackground()but instead creates aDisplayStack.- Returns:
- a
DisplayStackderived frombackground()and cached.
-
extent
public org.anchoranalysis.spatial.box.Extent extent()The width and height and depth of the background image, associated with the objects.i.e. the size of each of the three possible dimensions.
All objects should reside exclusively within this space.
- Returns:
- the extent.
-
size
public int size()A count of the total number of elements in each representation.- Returns:
- the total number of elements, valid for all representations.
-
background
The background image associated with this particular scale.
-