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>