T
- model-typepublic class SuppressNonMaximum<T extends InferenceModel> extends SegmentStackIntoObjectsPooled<T>
Constructor and Description |
---|
SuppressNonMaximum() |
SuppressNonMaximum(SegmentStackIntoObjectsPooled<T> segment)
Creates with a particular segmentation algorithm as an input.
|
SuppressNonMaximum(SegmentStackIntoObjectsPooled<T> segment,
ReduceElements<ObjectMask> reduce,
boolean separateEachLabel) |
Modifier and Type | Method and Description |
---|---|
ConcurrentModelPool<T> |
createModelPool(ConcurrencyPlan plan,
Logger logger)
Creates the model pool (to be used by multiple threads).
|
ReduceElements<ObjectMask> |
getReduce()
The algorithm for reducing the number of object-masks.
|
SegmentStackIntoObjectsPooled<T> |
getSegment()
The segmentation algorithm that is applied as an input to non-maximum suppression.
|
boolean |
isSeparateEachLabel()
If true, each label is reduced separately.
|
SegmentedObjects |
segment(Stack stack,
ConcurrentModelPool<T> modelPool,
ExecutionTimeRecorder executionTimeRecorder)
Segments a stack to produce an object-collection.
|
void |
setReduce(ReduceElements<ObjectMask> reduce)
The algorithm for reducing the number of object-masks.
|
void |
setSegment(SegmentStackIntoObjectsPooled<T> segment)
The segmentation algorithm that is applied as an input to non-maximum suppression.
|
void |
setSeparateEachLabel(boolean separateEachLabel)
If true, each label is reduced separately.
|
resolve, segment
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public SuppressNonMaximum(SegmentStackIntoObjectsPooled<T> segment)
segment
- the segmentation algorithm to use, before applying non-maximum suppression.public SuppressNonMaximum()
public SuppressNonMaximum(SegmentStackIntoObjectsPooled<T> segment, ReduceElements<ObjectMask> reduce, boolean separateEachLabel)
public ConcurrentModelPool<T> createModelPool(ConcurrencyPlan plan, Logger logger) throws CreateModelFailedException
SegmentStackIntoObjectsPooled
createModelPool
in class SegmentStackIntoObjectsPooled<T extends InferenceModel>
plan
- the number and types of processors available for concurrent execution.logger
- the logger.CreateModelFailedException
- if a model cannot be created.public SegmentedObjects segment(Stack stack, ConcurrentModelPool<T> modelPool, ExecutionTimeRecorder executionTimeRecorder) throws SegmentationFailedException
SegmentStackIntoObjectsPooled
Any created objects will always exist inside the stack's Extent
.
segment
in class SegmentStackIntoObjectsPooled<T extends InferenceModel>
stack
- the stack to segment.modelPool
- the pool of model instances which can each be used for inference (in
parallel).executionTimeRecorder
- measures execution-times of particular operations.SegmentationFailedException
- if anything goes wrong during the segmentation.public SegmentStackIntoObjectsPooled<T> getSegment()
public void setSegment(SegmentStackIntoObjectsPooled<T> segment)
public ReduceElements<ObjectMask> getReduce()
public void setReduce(ReduceElements<ObjectMask> reduce)
public boolean isSeparateEachLabel()
public void setSeparateEachLabel(boolean separateEachLabel)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.