com.pixelmed.display
Class ImageEditUtilities

java.lang.Object
  extended by com.pixelmed.display.ImageEditUtilities

public class ImageEditUtilities
extends Object

A class of utility methods for editing image pixel data.


Method Summary
static void blackout(SourceImage srcImg, AttributeList list, Vector shapes)
          Blackout specified regions in an image, for example to remove burned in identification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

blackout

public static void blackout(SourceImage srcImg,
                            AttributeList list,
                            Vector shapes)
                     throws DicomException

Blackout specified regions in an image, for example to remove burned in identification.

The accompanying attribute list will be updated with new Pixel Data and related Image Pixel Module attributes.

Note that original PhotometricInterpretation will be retained; care should be taken by the caller to change this as appropriate, e.g., from YBR_FULL_422 if read as JPEG to RGB if written as uncompressed. See, for example, AttributeList.correctDecompressedImagePixelModule().

Parameters:
srcImg - the image
list - the attribute list corresponding image
shapes - a java.util.Vector of java.awt.Shape, specifed in image-relative coordinates
Throws:
DicomException - if something bad happens handling the attribute list