Description
Measure signed and absolute gaps between supplied slice-position coordinates.
Medical-image metadata separates patient position, laterality, pixel spacing, slice spacing, padding and frame timing. Row and column spacing order matters, and slice spacing is distinct from slice thickness. A rectangular voxel or constant-frame model uses declared geometry; it does not inspect images, confirm a patient or establish a clinical finding.
Measure signed and absolute gaps between supplied slice-position coordinates.
When to use this tool
Use Image Slice Position Gap when you already have firstSlicePosition, secondSlicePosition and need to measure signed and absolute gaps between supplied slice-position coordinates.
How to use the tool and how it works
- Enter firstSlicePosition, secondSlicePosition. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read signedGap, absoluteGap. Use the output convention below.
Return second-first and abs(second-first) in matching units along the same axis.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstSlicePosition | First Slice Position | Required. Finite number. |
| secondSlicePosition | Second Slice Position | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| signedGap | Signed Gap | Required. Finite number. |
| absoluteGap | Absolute Gap | Required. Finite number. |
{
"input": {
"firstSlicePosition": 10,
"secondSlicePosition": 12.5
},
"output": {
"signedGap": 2.5,
"absoluteGap": 2.5
}
} Limitations and assumptions
- No orientation, ordering, multi-dimensional distance or image metadata is inspected.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Inspect the original DICOM attributes and complete image geometry when validating an image record. Use the relevant attribute and value-representation checks for format compliance, and actual per-frame timing when constant spacing or frame time is inadequate.
References
Similar or alternative tools
- DICOM Pixel Spacing Pair
Format row/column pixel spacing and calculate nominal pixel area.
- Image Padding Value Mask
Identify a supplied pixel value as padding by equality or an inclusive range.