ANTs icon indicating copy to clipboard operation
ANTs copied to clipboard

Error messages about invalid direction in PrintHeader

Open cookpa opened this issue 5 years ago • 2 comments

PrintHeader /share/apps/fsl/6.0.0/data/standard/MNI152_T1_1mm.nii.gz

Output:

 Spacing [1, 1, 1]
 Origin [-90, 126, -72]
 Direction 
1 0 0
0 -1 0
0 0 1

 Size : 182 218  182

  Image Dimensions   : [182, 218, 182]
  Bounding Box       : {[-90 126 -72], [92 344 110]}
  Voxel Spacing      : [1, 1, 1]
  Intensity Range    : [0, 9999]
  Mean Intensity     : 2742.37
  Direction Cos Mtx. : 
1 0 0
0 -1 0
0 0 1

  Voxel->RAS x-form  : 
  Image Metadata: 
    ITK_FileNotes = FSL5.0
    ITK_original_direction of unsupported type N3itk6MatrixIdLj3ELj3EEE
    ITK_original_spacing of unsupported type St6vectorIdSaIdEE
    bitpix = 16
    cal_max = 8000
    cal_min = 3000
    datatype = 4
    descrip = FSL5.0
    dim[0] = 3
    dim[1] = 182
    dim[2] = 218
    dim[3] = 182
    dim[4] = 1
    dim[5] = 1
    dim[6] = 1
    dim[7] = 1
    dim_info = 0
    intent_code = 0
    intent_p1 = 0
    intent_p2 = 0
    intent_p3 = 0
    nifti_type = 1
    pixdim[0] = 0
    pixdim[1] = 1
    pixdim[2] = 1
    pixdim[3] = 1
    pixdim[4] = 1
    pixdim[5] = 0
    pixdim[6] = 0
    pixdim[7] = 0
    qform_code = 4
    qform_code_name = NIFTI_XFORM_MNI_152
    qoffset_x = 90
    qoffset_y = -126
    qoffset_z = -72
    quatern_b = 0
    quatern_c = 1
    quatern_d = 0
    scl_inter = 0
    scl_slope = 1
    sform_code = 4
    sform_code_name = NIFTI_XFORM_MNI_152
    slice_code = 0
    slice_duration = 0
    slice_end = 0
    slice_start = 0
    srow_x = -1 0 0 90
    srow_y = 0 1 0 -126
    srow_z = 0 0 1 -72
    toffset = 0
    vox_offset = 352
    xyzt_units = 10

Does anyone know what this means?

    ITK_original_direction of unsupported type N3itk6MatrixIdLj3ELj3EEE
    ITK_original_spacing of unsupported type St6vectorIdSaIdEE

This is on Linux with the current master. I'm not seeing it on my older build (ANTs Version: 3.0.0.0.dev93-g3813c).

I'm getting some registration problems that I think might be related, I am investigating further.

cookpa avatar Mar 04 '20 17:03 cookpa

I believe that means the print function being used for that field doesn't have a way to render those object types to cout

gdevenyi avatar Mar 04 '20 18:03 gdevenyi

Update: the registration problems were unrelated. We're still seeing these errors in PrintHeader though.

cookpa avatar Feb 10 '21 20:02 cookpa