[vtkusers] Clarification: vtkImageReslice->reorienting a volume

Audrius Stundzia adv_biologic at hotmail.com
Mon Jun 12 18:10:27 EDT 2000


Hi David,

Thanks for your prompt reply. Much appreciated.

>If you just want to change the orientation, just use
>SetResliceMatrix but not SetResliceTransform.
>

Got it. Thanks.

>The 3x3 portion of the matrix should contain the direction cosines.

Got this too. However, a clarification of the man pages entry for
void SetResliceAxes (vtkMatrix4x4 *)
would be very helpful:
o The standard (i,j) = (row,column) convention is being used?
o The column vectors are those of the old axes? or the new axes?
Ie., x_p = Rx where R is the rotation matrix, are the column vectors the 
axes associated with x or with x_p? Looking at Eqn (3-13) in the book, I 
think column vectors are the "new, target" axes associated with x_p. 
Correct?




>As for the crash, if you could use a debugger to find the line of code
>that is causing the problem then that would be great.  Otherwise, if you
>can change your code so that it uses the data set in the 'vtkdata'
>directory and send it to me, then I can test it for you.
>

Thanks for your offer. I found the crash problem, I wasn't setting

   testImageData->SetScalarType( VTK_FLOAT);
   testImageData->SetNumberOfScalarComponents( 1);
   testImageData->AllocateScalars();

especially the first line. vtk hadn't complained before, so I'd gotten away 
with it.

Finally, I think vtkImageReslice is a most useful contribution to vtk.

Best regards,

Audrius

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com





More information about the vtkusers mailing list