Pixel operations

Reorient (flip or 90° rotation)

Flip an image or rotate it by 90° to correct its in-plane orientation.

Problem

A DICOM image is flipped (mirrored) or turned in the wrong direction, e.g. the patient’s left appears on the right side of the screen because the scanner used a reversed coordinate system. You need to apply a flip or a rotation to correct the orientation and produce a properly oriented derived image.

Steps

  1. Open the file (⌘O) and record the original SOP Instance UID (0008,0018) in Edit mode.

  2. Open Pixel Operations. ⌘K → “Pixel operations…”.

  3. Select Flip or Rotate from the pixel operation picker. For Flip, choose Horizontal (L↔R) or Vertical (T↔B). For Rotate, choose 90° Clockwise or 90° Counter-CW.

  4. Click Apply transform. The transformed image is derived and staged in memory.

  5. Verify. Filter for SOP Instance UID (0008,0018). The derived copy has a new UID starting with 2.25.. Filter for Image Orientation (Patient) (0020,0037) to see the new row and column directions.

Result

A derived copy is produced with the pixels mirrored or turned by 90° and a regenerated 2.25.* SOP Instance UID, leaving the original’s UID untouched. Pixel values are preserved. A flip keeps the dimensions; a rotation swaps Rows and Columns.

The tags that place the image in the patient are rewritten to match, so every pixel keeps its position in the patient. Image Orientation (Patient) (0020,0037) gets the new row and column directions and Image Position (Patient) (0020,0032) the position of the new top-left pixel. A rotation also swaps the two Pixel Spacing (0028,0030) values, and Imager Pixel Spacing and Pixel Aspect Ratio when the file has them. Patient Orientation (0020,0020) and the Field of View Rotation and Horizontal Flip are updated too. Without Pixel Spacing the position cannot be computed and is kept as it was. Overlay planes and ultrasound regions move with the pixels. If an overlay cannot be moved exactly, for example because its data is shorter than its size says, the transform is refused with the reason and nothing is written. A multi-frame image cannot be flipped or rotated.

These operations work within the image plane. To view or export a volume as sagittal or coronal slices, see MPR / reformat export.