Class DeidentifyAndRedact.RedactionRegions

java.lang.Object
com.pixelmed.apps.DeidentifyAndRedact.RedactionRegions
Enclosing class:
DeidentifyAndRedact

protected class DeidentifyAndRedact.RedactionRegions extends Object

A protected class to store sets of rectangular redaction regions indexed by a String classname.

  • Constructor Details

    • RedactionRegions

      public RedactionRegions(String fileName) throws 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)

      Parameters:
      fileName -
      Throws:
      Exception
  • Method Details

    • getRedactionRegionShapes

      public Vector<Shape> getRedactionRegionShapes(String className)

      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