Class SegmentedObjectsAtScale
Object
SegmentedObjectsAtScale
Exposes a particular set of segmented-objects at a particular scale.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentedObjectsAtScale
(List<LabelledWithConfidence<MultiScaleObject>> source, Function<MultiScaleObject, ObjectMask> extractObject, Stack background, StackDisplayer displayer, ExecutionTimeRecorder executionTimeRecorder, String executionTimeSuffix) Creates a newSegmentedObjectsAtScale
instance. -
Method Summary
Modifier and TypeMethodDescriptionThe background image associated with this particular scale.Likebackground()
but instead creates aDisplayStack
.extent()
The width and height and depth of the background image, associated with the objects.Create aList
of all contained objects, including confidence.Create aList
of all contained objects, including confidence.objects()
Create aObjectCollection
of all contained objects, excluding confidence.Likeobjects()
but instead creates aObjectCollectionWithProperties
containing empty properties.int
size()
A count of the total number of elements in each representation.
-
Constructor Details
-
SegmentedObjectsAtScale
public SegmentedObjectsAtScale(List<LabelledWithConfidence<MultiScaleObject>> source, Function<MultiScaleObject, ObjectMask> extractObject, Stack background, StackDisplayer displayer, ExecutionTimeRecorder executionTimeRecorder, String executionTimeSuffix) Creates a newSegmentedObjectsAtScale
instance.- Parameters:
source
- A list containingMultiScaleObject
from which we derive other representations at a specific scale.extractObject
- Extracts anObjectMask
at the desired specific scale from aMultiScaleObject
insource
.background
- The background image associated with this particular scale.displayer
- How to convert the background in an image suitable to be displayed.executionTimeRecorder
- Records the execution-time of particular operations.executionTimeSuffix
- Appended to the execution-time identifiers to indicate more precisely what is being recorded.
-
-
Method Details
-
listWithLabels
Create aList
of all contained objects, including confidence.- Returns:
- a newly created
List
that reuses the existingObjectMask
stored in the structure.
-
listWithoutLabels
Create aList
of all contained objects, including confidence.- Returns:
- a newly created
List
that reuses the existingObjectMask
stored in the structure.
-
objects
Create aObjectCollection
of all contained objects, excluding confidence.- Returns:
ObjectCollection
derived fromsource
and cached.
-
objectsWithProperties
Likeobjects()
but instead creates aObjectCollectionWithProperties
containing empty properties.- Returns:
- an
ObjectCollection
derived fromobjects()
and cached.
-
backgroundDisplayStack
Likebackground()
but instead creates aDisplayStack
.- Returns:
- a
DisplayStack
derived frombackground()
and cached.
-
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.
-