[vtkusers] ImageReslice & Bounds & Math

marcelo oliveira oliveira_mc at yahoo.com.br
Wed Sep 17 16:12:47 EDT 2003


Hi user !!!!

I´m very in doubt !!!!

I have a stack of axial CT image

x = 512
y = 512
Z = 81

space x = 1
space y = 1
space z = 13.65

How can i caculate my new stack in Z when i Rotate Y
by 64 degrees

i try 

double ZExtent = 
80.00/sin(1.11);                

                  //90-64 degrees 
spaceZ = 13.65 / sin(1.54-1.11);
spaceZ = sqrt( pow( (13.65 * 80), 2 ) + 
pow( spaceZ, 2 ) ) / ZExtent ;

then

SetOutputSpacing( 1.00, 1.00, spaceZ );

Is right ????


Tanks a lot for help me !!!!!!1

_______________________________________________________________________
Desafio AntiZona: participe do jogo de perguntas e respostas que vai
dar um Renault Clio, computadores, câmeras digitais, videogames e muito
mais! www.cade.com.br/antizona



More information about the vtkusers mailing list