<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 style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br>&nbsp;&nbsp;&nbsp; I think I solved this problem before.&nbsp; <br>Some Hints:<br>1) take the nearest point on the bounding box around the volume rendered object (vtkCellPicker)<br>2) shot a ray from this point perpendicular to the view direction.<br>3) get the intersection points along this ray to the volume data.<br>4) get the location (x,y,z) for the maximum intensity point(s).<br>5) if you have more than one point with maximum intensity. Choose the nearest one with respect to the viewer.<br><br>Best regards,<br>Ahmed Saad<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Mark Wyszomierski &lt;markww@gmail.com&gt;<br>To: David E DeMarle
 &lt;dave.demarle@kitware.com&gt;<br>Cc: vtkusers@public.kitware.com<br>Sent: Thursday, February 1, 2007 6:52:54 AM<br>Subject: Re: [vtkusers] picking a voxel in a MIP volume<br><br><div>hmm ok looks like i have to hack into the mapper then,<br><br>thanks,<br>mark<br><br>On 1/31/07, David E DeMarle &lt;dave.demarle@kitware.com&gt; wrote:<br>&gt; I do not believe there is anything built in to do that. vtkCellPicker<br>&gt; will obtain the closest cell along the ray for that pixel (the one on<br>&gt; the near face) not the one that has the maximum value that you see<br>&gt; there.<br>&gt;<br>&gt; Dave DeMarle<br>&gt;<br>&gt;<br>&gt; On 1/31/07, Mark Wyszomierski &lt;markww@gmail.com&gt; wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; I'm doing a MIP rendering. Is there a way to 'pick' a voxel in the<br>&gt; &gt; rendered volume? I was thinking that the user could click a voxel in<br>&gt; &gt; the MIP volume, then I could display the picked voxel's x,y,z<br>&gt; &gt;
 location. Is this possible?<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt; Mark<br>&gt; &gt; _______________________________________________<br>&gt; &gt; This is the private VTK discussion list.<br>&gt; &gt; Please keep messages on-topic. Check the FAQ at: <a target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; <a target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt; &gt;<br>&gt;<br>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at: <a target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a target="_blank"
 href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div></div><br></div></div><br>

<hr size=1>Be a PS3 game guru.<br>Get your game face on with <a href="http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com">the latest PS3 news and previews at Yahoo! Games.</a></body></html>