← All cases

simpleitk · 284db4aa80ca8ff1110fc74c76bb2d481a267487

type-2d-affine-h5

Warning

3 of 2,524 interior voxels differ in uint8 (maximum 1 intensity units); differences up to 1 unit only warn. Boundary differences exceed comparison thresholds (max absolute error 1); boundary values do not affect acceptance.

Moving image
inputs/moving.png
Reference image
inputs/fixed.png
Transform
transforms/itk-2d/affine.h5
Reader hint
itk
Native application path
None
brainhops application path
None
Pipeline comparison
None
Application interface
python
Interpolation degree
1
Output / comparison dtype
uint8
Native reference dtype
float32
brainhops boundary
nearest
brainhops clip margin
0.5
Boundary approximation
Clamped/mirrored interpolation inside the half-voxel extent; closed clip endpoints can differ from native open/half-open endpoints.
Capability fallback
Native boundary convention
ITK image interpolation: clamp within the half-voxel image extent; zero outside.

Interior acceptance

Floating output must pass both maximum error and normalised RMSE thresholds. NRMSE divides RMSE by the reference intensity range (at least one). For integer output, NRMSE and mismatch counts are informational: one-unit differences warn, larger interior differences fail. Boolean output requires exact equality.

MeasureObservedRequiredCheck
Maximum absolute error1≤ 1Warning
Normalised RMSE0.000193685InformationalSuccess
Integer mismatch count3InformationalWarning

Interior covers 85.2% of the reference grid. Boundary maximum error: 1 (nonblocking). Boundary NRMSE: 0.000268744.

Visual comparison

Reference, native package, brainhops, checkerboard and absolute differences
All anatomy/checkerboard panels share one intensity window. Absolute differences use their labelled scale. Slices follow reference voxel axes.
Axis interpretation
{
  "moving": {
    "passed": true,
    "checks": {
      "shape_matches_package": true,
      "pixels_match_package_axis_order": true,
      "numeric_grid_matches_package": true
    },
    "storage_shape": [
      47,
      63
    ],
    "loaded_shape": [
      63,
      47
    ],
    "package_geometry": {
      "size": [
        63,
        47
      ],
      "spacing": [
        1.0,
        1.0
      ],
      "origin": [
        0.0,
        0.0
      ],
      "direction": [
        1.0,
        0.0,
        0.0,
        1.0
      ]
    },
    "loaded_grid_to_model": [
      [
        1.0,
        0.0,
        0.0
      ],
      [
        0.0,
        1.0,
        0.0
      ]
    ],
    "package_grid_to_model": [
      [
        1.0,
        0.0,
        0.0
      ],
      [
        0.0,
        1.0,
        0.0
      ]
    ],
    "loaded_grid_axes": [
      {
        "name": "x",
        "type": "space",
        "unit": "index",
        "orientation": "None"
      },
      {
        "name": "y",
        "type": "space",
        "unit": "index",
        "orientation": "None"
      }
    ],
    "loaded_model_axes": [
      {
        "name": "x",
        "type": "space",
        "unit": "None",
        "orientation": "None"
      },
      {
        "name": "y",
        "type": "space",
        "unit": "None",
        "orientation": "None"
      }
    ],
    "scope": "Numeric grid and pixel order; unspecified anatomical orientations are not inferred."
  },
  "reference": {
    "passed": true,
    "checks": {
      "shape_matches_package": true,
      "pixels_match_package_axis_order": true,
      "numeric_grid_matches_package": true
    },
    "storage_shape": [
      47,
      63
    ],
    "loaded_shape": [
      63,
      47
    ],
    "package_geometry": {
      "size": [
        63,
        47
      ],
      "spacing": [
        1.0,
        1.0
      ],
      "origin": [
        0.0,
        0.0
      ],
      "direction": [
        1.0,
        0.0,
        0.0,
        1.0
      ]
    },
    "loaded_grid_to_model": [
      [
        1.0,
        0.0,
        0.0
      ],
      [
        0.0,
        1.0,
        0.0
      ]
    ],
    "package_grid_to_model": [
      [
        1.0,
        0.0,
        0.0
      ],
      [
        0.0,
        1.0,
        0.0
      ]
    ],
    "loaded_grid_axes": [
      {
        "name": "x",
        "type": "space",
        "unit": "index",
        "orientation": "None"
      },
      {
        "name": "y",
        "type": "space",
        "unit": "index",
        "orientation": "None"
      }
    ],
    "loaded_model_axes": [
      {
        "name": "x",
        "type": "space",
        "unit": "None",
        "orientation": "None"
      },
      {
        "name": "y",
        "type": "space",
        "unit": "None",
        "orientation": "None"
      }
    ],
    "scope": "Numeric grid and pixel order; unspecified anatomical orientations are not inferred."
  }
}
Warnings
[
  "Some axes were paired by position within their type group, because no name, unit, or orientation distinguished them. Check that the two coordinate systems describe the same axes in the same order.",
  "Some axes were paired by position within their type group, because no name, unit, or orientation distinguished them. Check that the two coordinate systems describe the same axes in the same order.",
  "Some axes were paired by position within their type group, because no name, unit, or orientation distinguished them. Check that the two coordinate systems describe the same axes in the same order.",
  "Some axes were paired by position within their type group, because no name, unit, or orientation distinguished them. Check that the two coordinate systems describe the same axes in the same order.",
  "3 of 2,524 interior voxels differ in uint8 (maximum 1 intensity units); differences up to 1 unit only warn.",
  "Boundary differences exceed comparison thresholds (max absolute error 1); boundary values do not affect acceptance."
]
Differences before reference dtype conversion
{
  "interior_fraction": 0.8524147247551502,
  "interior_max_abs": 0.5,
  "interior_nrmse": 0.0011671698632195666,
  "boundary_max_abs": 0.5,
  "boundary_nrmse": 0.0009420162104812617,
  "boundary_warning": true,
  "all_voxels_rmse": 0.20284651251461894,
  "atol": 0.02,
  "nrmse_limit": 2e-05
}