Skip to content

Main content

DICOM Pixel Spacing Row Column Crosswalk Tool

DICOM Pixel Spacing order is row then column, in millimeters; distances are in the image plane, not patient-coordinate reconstruction.

Loading tool…

Description

DICOM Pixel Spacing order is row then column, in millimeters; distances are in the image plane, not patient-coordinate reconstruction.

An image grid has array indices as well as physical spacing, timing, and signal conventions. A calculation on supplied metadata describes one part of that grid or signal; it does not inspect an image, validate a complete file, or interpret anatomy.

DICOM Pixel Spacing order is row then column, in millimeters; distances are in the image plane, not patient-coordinate reconstruction.

When to use this tool

Use it for dicom pixel spacing row column crosswalk when the required inputs and conventions are already available.

How to use the tool and how it works

  1. Enter rowOffset, columnOffset, pixelSpacing. Keep parallel arrays aligned and use the stated units and conventions.
  2. Run the calculation. Correct any input error before interpreting a result.
  3. Read rowDistanceMm, columnDistanceMm, planarDistanceMm. Inspect any known, defined, inclusion, or boundary flags before interpreting numeric values.

Require exactly two positive pixelSpacing values in row-then-column order. Multiply rowOffset by the first spacing and columnOffset by the second, then return their Euclidean planar distance.1

DICOM Pixel Spacing gives adjacent row spacing followed by adjacent column spacing, in millimeters.2

Input fieldMeaning and unitsAccepted input
rowOffsetSigned row displacement in pixel intervals.Required. Finite number.
columnOffsetSigned column displacement in pixel intervals.Required. Finite number.
pixelSpacingExactly two positive spacings: adjacent row spacing then adjacent column spacing, in millimeters.Required. Array of Finite number.; maximum items 256.
Output fieldInterpretationReturned shape
rowDistanceMmSigned row component in millimeters.Required. Finite number.
columnDistanceMmSigned column component in millimeters.Required. Finite number.
planarDistanceMmNonnegative planar Euclidean distance in millimeters.Required. Finite number.
json
{
  "input": {
    "rowOffset": 3,
    "columnOffset": 4,
    "pixelSpacing": [
      2,
      1
    ]
  },
  "output": {
    "rowDistanceMm": 6,
    "columnDistanceMm": 4,
    "planarDistanceMm": 7.211102550927979
  }
}

Limitations and assumptions

  • DICOM Pixel Spacing uses millimeters, so signed component distances and the nonnegative planar distance are in millimeters. Orientation and image position are still needed for patient-coordinate reconstruction.
  • The field tables describe structural bounds; the mechanics also state cross-field requirements. Malformed input shapes, disallowed keys, and invalid domains cause input errors. Results must remain finite and within the declared output contract. A successful false flag or zero placeholder is distinct from an error.
  • Numeric arithmetic uses binary floating point. Exact comparisons have no hidden tolerance or decimal rounding; negative zero is exported as zero. Decimal-text integer operations retain the exactness specifically stated above.

Alternative or Complementary methods

For dicom pixel spacing row column crosswalk, check the source records and the supplied rule before comparing the result with another method. Use a full image reader and geometry or signal analysis when the task requires interpreting image data.

References

  1. Calculation and input contract: radiology/dicom-pixel-spacing-row-column-crosswalk — tool.io

  2. DICOM PS3.3, C.7.6.2: Image Plane Module — NEMA

Similar or alternative tools