<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:12pt"><DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>hello every one,</DIV>
<DIV>I'm begining using VTK in my project in Qt and I have a little problem,</DIV>
<DIV>I used a vtkStructuredPoints for rendring images and I want to implement a multiplanar reconstitution to visualize slices in the 3 three axes (X,Y,Z).</DIV>
<DIV>for that I used , like in the exemple medical3.cxx, vtkImageActor,vtkLoohupTable and the vtkImageMapToColor, and every thing goes alright for the images following the Axe Z but for the other axes something wrong happens : the image is displayed right in the renderer but when I recover the buffer of that image to create mine, because I use a QGLWidget (of Qt) to visualize the images and the vtkRenderWindow just for testing the result, I guess that the diemensoions of the image that I create are wrongs but I'm not sue.</DIV>
<DIV>this is some lines of the code I use for the axial image (following the X axe).</DIV>
<DIV> data2=vtkStructuredPoints::New();<BR> data2->SetDimensions(width_Vol,Height_Vol,Dpth_Vol); <BR> data2->SetSpacing (Xsp, Ysp, Zsp);<BR> data2->SetScalarType(VTK_UNSIGNED_SHORT);<BR> data2->AllocateScalars();</DIV>
<DIV>..... Rendering....</DIV>
<DIV>hueLut = vtkLookupTable::New();<BR> hueLut->SetTableRange (0, 2000);<BR> hueLut->SetHueRange (0, 0);<BR> hueLut->SetSaturationRange (0,0);<BR> hueLut->SetValueRange (0, 1);<BR> hueLut->Build(); </DIV>
<DIV> axialColors = vtkImageMapToColors::New();<BR> axialColors->SetInput(data2);<BR> axialColors->SetLookupTable(hueLut);</DIV>
<DIV> axial = vtkImageActor::New();<BR> axial->SetInput(axialColors->GetOutput());<BR> axial->SetDisplayExtent(150,150, 0,Height_Vol, 0,Dpth_Vol); // the slice number 150 //X</DIV>
<DIV>//Creation of the Qt Image </DIV>
<DIV>int dims[3];<BR> axialColors ->GetOutput()->GetDimensions(dims); <BR> int Img_width = dims[2];<BR> int Img_height0 = dims[1];<BR> QImage *myImgZ=new QImage((uchar*)(axialColors ->GetOutput()->GetScalarPointer()), <BR> Img_width,Img_height0,<BR> 32,<BR> curCWdgImg->myCDicom->getColorTable(),256,<BR> QImage::IgnoreEndian);</DIV>
<DIV> </DIV>
<DIV>so How can specify that the Image I want, has to follow that Axe or the other (something like : SetPlaneOrientation (Orientaion) ????);</DIV>
<DIV>thank you for your help</DIV></DIV>
<DIV id=highlighterDiv style="DISPLAY: none; Z-INDEX: -1; POSITION: absolute; BACKGROUND-COLOR: yellow"></DIV></DIV></div></body></html>