Hello again,<br><br>Sorry to clutter the list but I keep discovering new things:<br><br>It seems that it is because of the way I have set up my reslicer. Let me first list what is happening. <br><br>I can get it to show me the slice in axial plane if I just call SetOutputDimensionality() and not do the output origin, output extent and output spacing myself. Then all I have to do is set the camera parameters correctly and the slice shows. I have had no luck with viewing the sagittal and coronal planes. It seems that I might have to permute the reslice axes matrix of my reslicer before I set it as the transform matrix of the vtkImageActor. Can someone please confirm if this is correct?
<br><br>Now, I have the reslicer set up really the way I want it. Is there some way that I can position the vtkImageActor to the position that the reslicer is set at. I thought just setting the SetUserMatrix() should have done the trick, but it seems that if you set up the output params yourself on the reslicer, you are in a bit of soup.
<br><br>I do hope someone can help me here. <br><br>Best regards,<br><br>Pankaj<br><br><br><br><br><br><div><span class="gmail_quote">On 10/12/06, <b class="gmail_sendername">Pankaj Daga</b> <<a href="mailto:deluded.soul@gmail.com">
deluded.soul@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi again,<br><br>By the way, I already have called the SetUserMatrix on the image actor to match that of my reslicer but it really does not show the whole image...
<br><br>So, when I set the slice then I do the following:<br>
<br>case AXIAL:<br> sliceMan->SetResliceAxesOrigin(0, 0, origin[2] + num * spacing[2]); <br> imageAct->SetUserMatrix(sliceMan->GetResliceAxes());
<br> break;<br><pre>Bizarre though...only see a small part of the image. I guess there is something else missing here... Any pointers, experts?<br><br>Best regards,<br><span class="sg">Pankaj<br></span></pre><div>
<span class="e" id="q_10e3d0ead8a4f701_3"><br><div><span class="gmail_quote">
On 10/12/06, <b class="gmail_sendername">Pankaj Daga</b> <<a href="mailto:deluded.soul@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">deluded.soul@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hiya,<br><br>I have a vtkImageReslice that is giving me 2D slices. The slices are shown correctly using a simple 2D actor but when I try to visualize it using vtkImageActor I only see like a small part of the image (a bit of the lower left corner).
<br><br>Just for test I viewed it using a vtkActor2D and everything seems ok and it shows correctly at the correct position on the screen and with the correct spacing etc. I would rather not change much there.... What is the best way to get it to work with a vtkImageActor.
<br><br>Thanks and best regards,<br><span><br>Pankaj<br><br>
</span></blockquote></div><br>
</span></div></blockquote></div><br>