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 newSegmentedObjectsAtScaleinstance. -
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 aListof all contained objects, including confidence.Create aListof all contained objects, including confidence.objects()Create aObjectCollectionof all contained objects, excluding confidence.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, ObjectMask> extractObject, Stack background, StackDisplayer displayer, ExecutionTimeRecorder executionTimeRecorder, String executionTimeSuffix) Creates a newSegmentedObjectsAtScaleinstance.- Parameters:
source- A list containingMultiScaleObjectfrom which we derive other representations at a specific scale.extractObject- Extracts anObjectMaskat the desired specific scale from aMultiScaleObjectinsource.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 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
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
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.
-