Hi,<br><br>I'm trying to rigidly transform some 3D image data for test in registration, but can't seem to figure out what kind problems I'm running into:<br><br>1) The program only seems to resample the 1st out of a total of 12 slices from my 3D image, all other slices are just a repeat of the first slice. I tried playing around with
<span style="font-style: italic;">spacing[2] = x</span> for <span style="font-style: italic;">Dimension = 3</span> where <span style="font-style: italic;">x</span> is any value greater than 0, but instead the program would give me every slice other than the 1st one black.
<br><br>2) Also, all the output images seem to give me really high brightness and contrast values. For example my original images have brightness = 2204933.4355 and contrast = 4277002.0027, and the output would be brightness =
44324303030.1732 and contrast = 9999999.0000. Does this have to do with the fact that I changeed the <span style="font-style: italic;">InputPixelType </span>and <span style="font-style: italic;">OutputPixelType </span>to
<span style="font-style: italic;">float</span>?<br><br>In generally I think it's my <span style="font-style: italic;">spacing </span>and maybe <span style="font-style: italic;">origin</span> values that are creating these problems, so here are what I think they should be:
<br><br>Spacing (or in ANALYZE, Size) (mm): x = 0.01, y = 0.01, z = 0.00<br>Origin (same name in ANALYZE) (vxl): x = 0.00, y = 0.00, z = 0.00<br><br><br>Thank You,<br>Kevin<br>