Restructuring

Duplicate frame removal

Detect and drop duplicate frames from a multi-frame object.

Problem

Your dataset contains duplicate DICOM instances: the same SOP Instance UID appears in two different files. This happens when files are copied between folders, when a PACS export includes redundant copies, or when a CD import brings in files already archived. Duplicate SOP Instance UIDs violate DICOM uniqueness constraints and cause PACS import errors.

Steps

  1. Open the files (⌘O). Load the same file twice to simulate duplicates (e.g. test.dcm loaded twice).

  2. Switch to the Files tab in the right rail.

  3. Check the Dedupe button. It shows Dedupe (1) indicating one duplicate was detected. The button is enabled.

  4. Click Dedupe. The duplicate instance is removed. The button updates to Dedupe (0) and becomes disabled (reduced opacity, not-allowed cursor).

  5. Verify. Only unique instances remain. The files tree shows the correct count.

When No Duplicates Exist

  • Load a single file with no duplicates.
  • The Dedupe button shows Dedupe (0) and is disabled: you can’t click it when there’s nothing to deduplicate.

Result

Duplicate SOP Instance UIDs are detected and counted; deduplicating keeps the first-loaded copy of each and removes the rest. The button is disabled when there are no duplicates, so there are no no-op clicks.