<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>&nbsp;data2=vtkStructuredPoints::New();<BR>&nbsp; data2-&gt;SetDimensions(width_Vol,Height_Vol,Dpth_Vol);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; data2-&gt;SetSpacing (Xsp, Ysp, Zsp);<BR>&nbsp; data2-&gt;SetScalarType(VTK_UNSIGNED_SHORT);<BR>&nbsp; data2-&gt;AllocateScalars();</DIV>
<DIV>..... Rendering....</DIV>
<DIV>hueLut = vtkLookupTable::New();<BR>&nbsp;&nbsp;&nbsp; hueLut-&gt;SetTableRange (0, 2000);<BR>&nbsp;&nbsp;&nbsp; hueLut-&gt;SetHueRange (0, 0);<BR>&nbsp;&nbsp;&nbsp; hueLut-&gt;SetSaturationRange (0,0);<BR>&nbsp;&nbsp;&nbsp; hueLut-&gt;SetValueRange (0, 1);<BR>&nbsp;&nbsp;&nbsp; hueLut-&gt;Build(); </DIV>
<DIV>&nbsp;axialColors = vtkImageMapToColors::New();<BR>&nbsp;&nbsp;&nbsp; axialColors-&gt;SetInput(data2);<BR>&nbsp;&nbsp;&nbsp; axialColors-&gt;SetLookupTable(hueLut);</DIV>
<DIV>&nbsp;axial = vtkImageActor::New();<BR>&nbsp;&nbsp;&nbsp; axial-&gt;SetInput(axialColors-&gt;GetOutput());<BR>&nbsp;axial-&gt;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>&nbsp; axialColors -&gt;GetOutput()-&gt;GetDimensions(dims); <BR>&nbsp; int Img_width = dims[2];<BR>&nbsp; int Img_height0 = dims[1];<BR>&nbsp; QImage *myImgZ=new QImage((uchar*)(axialColors -&gt;GetOutput()-&gt;GetScalarPointer()), <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Img_width,Img_height0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; curCWdgImg-&gt;myCDicom-&gt;getColorTable(),256,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QImage::IgnoreEndian);</DIV>
<DIV>&nbsp;</DIV>
<DIV>so How can specify that the Image I want,&nbsp;has to &nbsp;follow that Axe or the other (something like : SetPlaneOrientation (Orientaion)&nbsp; ????);</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>