Class MaskAsObject
Loads
Mask to compared, converting it into an ObjectMask.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhere to find theMaskto compare, as a function of the source file-path.How to read theMaskfrom the file-system.booleanisInvert()If true theMaskis inverted before conversion into anObjectCollection.loadAsObjects(Path reference, Dimensions dimensions, boolean debugMode, OperationContext context) Loads the source of elements from the file-system and converts to aObjectCollection.voidsetDerivePath(DerivePath derivePath) Where to find theMaskto compare, as a function of the source file-path.voidsetInvert(boolean invert) If true theMaskis inverted before conversion into anObjectCollection.voidsetStackReader(StackReader stackReader) How to read theMaskfrom the file-system.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MaskAsObject
public MaskAsObject()
-
-
Method Details
-
loadAsObjects
public Findable<ObjectCollection> loadAsObjects(Path reference, Dimensions dimensions, boolean debugMode, OperationContext context) throws InputReadFailedException Description copied from class:ComparableSourceLoads the source of elements from the file-system and converts to aObjectCollection.The location of elements on the file-system may be derived from a
referencepath.- Specified by:
loadAsObjectsin classComparableSource- Parameters:
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.- Returns:
- the elements converted into a
ObjectCollectionand wrapped into aFindableelement that indicates if they were successfully found on the file-system. - Throws:
InputReadFailedException- if the objects cannot be successfully loaded.
-
getDerivePath
Where to find theMaskto compare, as a function of the source file-path. -
setDerivePath
Where to find theMaskto compare, as a function of the source file-path. -
getStackReader
How to read theMaskfrom the file-system. -
setStackReader
How to read theMaskfrom the file-system. -
isInvert
public boolean isInvert()If true theMaskis inverted before conversion into anObjectCollection. -
setInvert
public void setInvert(boolean invert) If true theMaskis inverted before conversion into anObjectCollection.
-