<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><DIV>Hello all,</DIV>
<DIV>my problem is quite simple I think and obvious for people familiar with the vtkImageReslice class, whitch is not my case.</DIV>
<DIV>In my project I've implemented the multiplanarreconstitution (MPR) from a stack of CT and MRI images.</DIV>
<DIV>for that I've done like fllows :</DIV>
<DIV>vtkStructredPoints * data = vtkStructredPoints::New();</DIV>
<DIV>....</DIV>
<DIV>vtkLookupTable *LkTbl= vtkLookupTable::New();</DIV>
<DIV>....</DIV>
<DIV>vtkImageMapToColors *sagitalColors = vtkImageMapToColor::New();</DIV>
<DIV>sagitalColors ->setInput(data);</DIV>
<DIV>sagitalColors setLookupTable(LkTbl);</DIV>
<DIV> </DIV>
<DIV>vtkImageActor *actr = vtkImageActor ::New()</DIV>
<DIV>actr->setInput(sagitalcolors->GetOutpu);</DIV>
<DIV>actr->SetDisplayExtent( 15,15, 0, 511,0,300) //example to show the 15th slice of a stack of 300 images , each one has 512 pxls wdth and hght</DIV>
<DIV> </DIV>
<DIV>render->addActor(actr);</DIV>
<DIV>rederWindow->render();</DIV>
<DIV>..</DIV>
<DIV> </DIV>
<DIV>this method shows only perpendicular slices as written in documentation of the vtkImageActor.</DIV>
<DIV>Now I want to be able to give imges of not orthogonal slices (doing some deviation of nbDgrees arround one of the three axes X, Y or Z).</DIV>
<DIV>I've read that vtkImageReslice is able to make that, and I have to specify cosines of the axes (X, Y and Z) but I don't Know how to calculate the new cosines?</DIV>
<DIV>if I have a deviation of the X plan and the Y plan of 30° each one arround the Z axe, how can I calculate the new cosins of these two axes ???</DIV>
<DIV> </DIV>
<DIV>(all the image used are DICOM images)</DIV>
<DIV> </DIV>
<DIV>please help me, </DIV>
<DIV>thank you.</DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités <br>http://mail.yahoo.fr Yahoo! Mail </body></html>