Class ThumbnailFromObjects
- Direct Known Subclasses:
OutlinePreserveRelativeSize
Creates a thumbnail of one or more objects on a stack by drawing the outline of the objects.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ThumbnailBatch
<ObjectCollection> start
(ObjectCollection objects, StreamableCollection<BoundingBox> boundingBoxes, Optional<Stack> background, ExecutionTimeRecorder executionTimeRecorder) Initializes a batch to create thumbnails.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ThumbnailFromObjects
public ThumbnailFromObjects()
-
-
Method Details
-
start
public abstract ThumbnailBatch<ObjectCollection> start(ObjectCollection objects, StreamableCollection<BoundingBox> boundingBoxes, Optional<Stack> background, ExecutionTimeRecorder executionTimeRecorder) throws OperationFailedException Initializes a batch to create thumbnails.A batch is a set of objects which are calibrated together (to have the same scale etc.)
- Parameters:
objects
- the entire set of objects in the batch (for which thumbnails may be subsequently created)boundingBoxes
- bounding-boxes that minimally enclose all the inputs to feature rows (e.g. a pair of objects or a single-object) and can be used for guessing scale-factors. A supplier is used as the stream may be desired multiple times.background
- a stack that will be used to form the background (or some part of may be used)executionTimeRecorder
- records execution time for various operations- Returns:
- a
ThumbnailBatch
interface to create thumbnails for individual objects - Throws:
OperationFailedException
- if the batch initialization fails
-