protected class DeidentifyAndRedact.RedactionRegions
extends java.lang.Object
A protected class to store sets of rectangular redaction regions indexed by a String classname.
Constructor and Description |
---|
RedactionRegions(java.lang.String fileName)
Construct the redaction regions from a text file.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector<java.awt.Shape> |
getRedactionRegionShapes(java.lang.String className)
Find the redaction regions for the specified class name.
|
public RedactionRegions(java.lang.String fileName) throws java.lang.Exception
Construct the redaction regions from a text file.
The format for each line is "class=(x,y,w,h)[;(x,y,w,h)]*", e.g., where class = "columnsxrows". E.g., "800x600 = (0,0,639,150)" (without the quotes)
fileName
- java.lang.Exception
public java.util.Vector<java.awt.Shape> getRedactionRegionShapes(java.lang.String className)
Find the redaction regions for the specified class name.
className
- a String of the form "colsxrows" to match the Rows and Columns values of the image