<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div><span>Hello David,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>thanks a lot.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Im just a little bit wondering how it happens that there are differnet entries in the DirectionCosines and the upper left 3x3 part of the 4x4 ResliceAxes matrix.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent;
 font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>But anyhow I want to ask sth different. I am currently working with the ImageReslice of the ImagePlaneWidget which are both displayed in different RenderWindows. ImageReslice is going there through ImageActor.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">I wanted to do some picking. I set up the vtkPointPicker and on LeftButtonDown I asked the Picker through picker.Pick(x, y, 0, ren) to give me the x, y value of the picked point. Within the ImagePlaneWidget an other position is shown as in my own Picker. It is not a shared one.&nbsp;<span style="background-color: transparent;">I tried to adopt the other picking examples but no
 chance.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">Upon what depends the calculation of the picked position? And how can I get it right? I had a look into the vtkImagePlaneWidget which shows everythin through an vtkActor the displays a texture that is placed on the planesource and gets its input from the maptocolor. This way is to cumbersome for my opinion.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color:
 transparent; font-style: normal;">Best,</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">Willi</div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: tahoma, 'new york', times, serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> David Gobbi &lt;david.gobbi@gmail.com&gt;<br> <b><span style="font-weight: bold;">An:</span></b> Willi Huber &lt;surfersparadise85-vtk@yahoo.com&gt; <br><b><span style="font-weight: bold;">CC:</span></b> "vtkusers@vtk.org" &lt;vtkusers@vtk.org&gt; <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 0:36 Mittwoch, 30.Januar 2013<br> <b><span
 style="font-weight: bold;">Betreff:</span></b> Re: [vtkusers] Question regarding vtkImageReslice<br> </font> </div> <br>SetResliceAxesDirectionCosines just sets the first three columns of<br>the ResliceAxes matrix.&nbsp; It leaves the fourth column of the matrix<br>untouched.&nbsp; So it is only useful if you want to set the rotation part<br>of the matrix while leaving the translation part unchanged.<br><br>SetOutputDimensionality(2) means that the output will always have<br>Origin[2] = 0.0 and Extent[4]=Extent[5]=0.&nbsp; In other words, the Z<br>coordinate for every point in the output will be zero.&nbsp; That is all<br>that this method does.&nbsp; When you call this method, your output will<br>always be two dimensional even if your input is three dimensional.<br><br>So if you use SetOutputDimensionality(2), then the ResliceAxes matrix<br>defines a coordinate transformation that will be applied to the plane<br>Z=0 in order to generate an oblique plane
 that slices through your<br>input data.&nbsp; A good way to think about it is that the 1st and 2nd<br>columns of the matrix are the basis vectors of the oblique plane, the<br>3rd column is the normal of the oblique plane, and the 4th column is<br>the "origin" of the oblique plane.&nbsp; If you call SetOutputOrigin(0,0,0)<br>then the 4th column of the reslice matrix will precisely define the 3D<br>point at the corner of your oblique plane.<br><br> - David<br><br><br>On Tue, Jan 29, 2013 at 2:02 PM, Willi Huber<br>&lt;<a ymailto="mailto:surfersparadise85-vtk@yahoo.com" href="mailto:surfersparadise85-vtk@yahoo.com">surfersparadise85-vtk@yahoo.com</a>&gt; wrote:<br>&gt; Hello,<br>&gt;<br>&gt; I would like to know the relationship of the ResliceAxes and<br>&gt; ResliceAxesDirectionCosines.<br>&gt; For my understanding the upper left 3x3 matrix of ResliceAxes consists of<br>&gt; the entries of ResliceAxesDirectionCosines which is true for example in<br>&gt;
 vtkImagePlaneWidget whereas the top 3x1 entries in the upper right determine<br>&gt; a kind of translation.<br>&gt; But for Examples/ImageProcessing/Python/ImageSlicing.py this ain't true.<br>&gt; Here the OutputDimensionality is set to 2 in contrast to 3 in<br>&gt; ImagePlaneWidget. I know this is done to extract the slice. Can someone<br>&gt; explain me how OutputDimensionality, ResliceAxes and<br>&gt; ResliceAxesDirectionCosines are related to each other?<br>&gt;<br>&gt; Best,<br>&gt; Willi<br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br><br><br> </div> </div> </blockquote></div>   </div></body></html>