Package com.pixelmed.apps
Class DeidentifyAndRedact.RedactionRegions
java.lang.Object
com.pixelmed.apps.DeidentifyAndRedact.RedactionRegions
- Enclosing class:
- DeidentifyAndRedact
A protected class to store sets of rectangular redaction regions indexed by a String classname.
-
Constructor Summary
ConstructorsConstructorDescriptionRedactionRegions
(String fileName) Construct the redaction regions from a text file. -
Method Summary
Modifier and TypeMethodDescriptiongetRedactionRegionShapes
(String className) Find the redaction regions for the specified class name.
-
Constructor Details
-
RedactionRegions
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)
- Parameters:
fileName
-- Throws:
Exception
-
-
Method Details
-
getRedactionRegionShapes
Find the redaction regions for the specified class name.
- Parameters:
className
- a String of the form "colsxrows" to match the Rows and Columns values of the image- Returns:
- the Vector of Shape for the requested class name, or null if not found
-