[MINC-users] mincreshape -dimsize

Soren Christensen sorench at gmail.com
Sat Sep 19 23:48:39 EDT 2015


Hi,
 I have an issue with mincreshape I don't understand. I guess it has to do
with trying to interpolate the slowest varying dimension:

file: pwi_bl.mnc
image: signed__ float 0 to 1381.4969482421875
image dimensions: zspace yspace xspace
    dimension name         length         step        start
    --------------         ------         ----        -----
    zspace                     17            5      -38.912
    yspace                    128        -1.75      95.0638
    xspace                    128        -1.75      110.338

u at K450$ mincreshape -dimsize zspace=49 -float -clobber  pwi_bl.mnc
pwi_blIP.mnc
Copying chunks:HDF5-DIAG: Error detected in HDF5 (1.8.15-patch1) thread 0:
  #000: H5Dio.c line 161 in H5Dread(): selection+offset not within extent
    major: Dataspace
    minor: Out of range
(from mivarget): Can't read dataset /minc-2.0/image/0/image-min
(from mivarget): Can't read variable ID# 1
HDF5-DIAG: Error detected in HDF5 (1.8.15-patch1) thread 0:
  #000: H5Dio.c line 161 in H5Dread(): selection+offset not within extent
    major: Dataspace
    minor: Out of range
(from mivarget): Can't read dataset /minc-2.0/image/0/image-max
(from mivarget): Can't read variable ID# 2
.................................................Done.

The file is written but it appears incorrect with a larger Z FOV for
starters but it also look as if the extreme slices are simply copied
outwards at each end (sorry cannot post images here). Finally the image
appears corrupted in register and freezes up Display and the OS!

file: pwi_blIP.mnc
image: signed__ float 0 to 1381.4969482421875
image dimensions: zspace yspace xspace
    dimension name         length         step        start
    --------------         ------         ----        -----
    zspace                     49          2.5      -57.662
    yspace                    128        -1.75      95.0638
    xspace                    128        -1.75      110.338

-dimsize xspace=64 works without errors.

I have a vague recollection Andrew Janke once explained how to deal with
this but I am unable to locate that post (if it ever existed).

Thanks!
Soren


More information about the MINC-users mailing list