public class MaskAsObject extends ComparableSource
Mask
to compared, converting it into an ObjectMask
.Constructor and Description |
---|
MaskAsObject() |
Modifier and Type | Method and Description |
---|---|
DerivePath |
getDerivePath()
Where to find the
Mask to compare, as a function of the source file-path. |
StackReader |
getStackReader()
How to read the
Mask from the file-system. |
boolean |
isInvert()
If true the
Mask is inverted before conversion into an ObjectCollection . |
Findable<ObjectCollection> |
loadAsObjects(Path reference,
Dimensions dimensions,
boolean debugMode,
OperationContext context)
Loads the source of elements from the file-system and converts to a
ObjectCollection . |
void |
setDerivePath(DerivePath derivePath)
Where to find the
Mask to compare, as a function of the source file-path. |
void |
setInvert(boolean invert)
If true the
Mask is inverted before conversion into an ObjectCollection . |
void |
setStackReader(StackReader stackReader)
How to read the
Mask from the file-system. |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Findable<ObjectCollection> loadAsObjects(Path reference, Dimensions dimensions, boolean debugMode, OperationContext context) throws InputReadFailedException
ComparableSource
ObjectCollection
.
The location of elements on the file-system may be derived from a reference
path.
loadAsObjects
in class ComparableSource
reference
- the source file-path used to help identify where elements are located on the
file-system.dimensions
- how large the scene is, in which elements are being compared. This is
usually the same as the image-size.debugMode
- true if debug-mode is activated, which can influence paths on the
file-system.context
- records the execution time of certain operations.ObjectCollection
and wrapped into a Findable
element that indicates if they were successfully found on the file-system.InputReadFailedException
- if the objects cannot be successfully loaded.public DerivePath getDerivePath()
Mask
to compare, as a function of the source file-path.public void setDerivePath(DerivePath derivePath)
Mask
to compare, as a function of the source file-path.public StackReader getStackReader()
Mask
from the file-system.public void setStackReader(StackReader stackReader)
Mask
from the file-system.public boolean isInvert()
Mask
is inverted before conversion into an ObjectCollection
.public void setInvert(boolean invert)
Mask
is inverted before conversion into an ObjectCollection
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.