<div dir="ltr">Are you again changing your imaegData to vtkImageChangeInformation::GetOutput() ?<br><br>Jothy<br><br><div class="gmail_quote">On Tue, May 29, 2012 at 12:58 PM, Jonathan Ruiz Peinado <span dir="ltr"><<a href="mailto:jonathan.ruiz3@gmail.com" target="_blank">jonathan.ruiz3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes I do, sorry I didn't write it <div>normalized is an vtkImageChangeInformation object<div><div class="h5"><br><br>
<div class="gmail_quote">2012/5/29 Jothybasu Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Are you using vtkImageChangeInformation?<br><br>Jothy<br><br><div class="gmail_quote"><div><div>
On Tue, May 29, 2012 at 12:23 PM, Jonathan Ruiz Peinado <span dir="ltr"><<a href="mailto:jonathan.ruiz3@gmail.com" target="_blank">jonathan.ruiz3@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi, I'm picking the a point location using vtkPointPicker, everything was working well until I changed the origin of the source image as I'm showing below:<div>
<div><br></div><div>normalized.SetInputConnection( reader.GetOutputPort() ); </div>
<div>****normalized.SetOutputOrigin(0.0, 0.0, 0.0);*****</div><div>normalized.SetOutputSpacing( spacing[0], spacing[1], ippzspacing );</div><div>normalized.Update();</div></div><div><br></div><div>Point picker is ignoring this new origin and is giving same cords as before, using the centre of the image as the origin instead of use the right top corner.</div>
<div><br></div><div><div>double[] axialMapperPosition = new double[4];</div><div> mouseXYAxial = e.getPoint();</div><div> vtkPointPicker pickerAxial = new vtkPointPicker();</div><div> </div><div>
int pickTest = pickerAxial.Pick(mouseXYAxial.x, mouseXYAxial.y, 0.0, vtkPanel.GetRenderer());</div><div><br></div><div>if (pickTest != 0) { </div><div> axialMapperPosition = pickerAxial.GetMapperPosition(); ; </div>
<div> System.out.println(" x:"+axialMapperPosition[0] + " y:"+axialMapperPosition[1] + " z:" +axialMapperPosition[2]);</div><div> </div><div>}</div></div>
<div><br></div><div>what I'm missing here?</div><div><br></div><div>Thanks</div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>