Pixel operations

Annotation burn-in (or removal)

Burn annotations into an exported image, or black out text burned into the DICOM pixels.

Problem

You want your measurements and arrows drawn into an image you can put in a report or slide. Or the reverse: a DICOM image contains burned-in annotations (text overlays, measurement callouts, or scanner-generated graphics) embedded in the pixel data. These can be PHI or clutter that interferes with downstream analysis, and you need to black them out.

Steps

Burn annotations into an exported image

  1. Open the DICOM file (⌘O) and draw the measurements or arrows you want on the frame.
  2. Open the image export. Click Export in the top bar and choose Export Active Frame Image….
  3. Tick Include annotations, pick PNG, TIFF or JPEG, and click Export.
  4. Check the image. Annotation text is drawn exactly as you typed it, so make sure it holds no patient details. See DICOM to PNG/TIFF/JPEG.

The annotations are drawn into the exported image only. The DICOM file is not changed, and dcmage does not draw annotations into DICOM pixel data.

Remove burned-in text from the pixels

  1. Open the DICOM file. Click Files on the start screen (⌘O).
  2. Detect burned-in text. Switch to Anon mode (Ctrl+3 / ⌘3 in the desktop app, Ctrl+Shift+A / ⌘⇧A in the browser) and click Detect text (OCR). dcmage scans the image for text and proposes a redaction region around each line it finds.
  3. Review the proposals. Each region is listed under Redaction regions and drawn on the image. Check that each one covers the burned-in annotation completely.
  4. Adjust if needed. Delete a false positive from the list. Proposed regions cannot be moved or resized, so draw an extra box with the Redact tool over any text the OCR missed or covered only in part. See Black-box redaction.
  5. Apply redaction. Click Apply & Export. The selected anonymization profile is applied to the tags, and the pixels inside every redaction region are blacked out.
  6. Verify. The exported file shows black rectangles where annotations previously appeared, and pixels outside the regions are unchanged.

Result

Include annotations draws your measurements and arrows into an exported PNG, TIFF or JPEG and leaves the DICOM file as it was. For removal, OCR proposes regions over detected burned-in text, you add or delete regions, and the exported DICOM shows black rectangles there with every other pixel preserved. OCR is a proposal, not a guarantee: check the rest of the image yourself.