<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> I think I solved this problem before. <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 <markww@gmail.com><br>To: David E DeMarle
<dave.demarle@kitware.com><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 <dave.demarle@kitware.com> wrote:<br>> I do not believe there is anything built in to do that. vtkCellPicker<br>> will obtain the closest cell along the ray for that pixel (the one on<br>> the near face) not the one that has the maximum value that you see<br>> there.<br>><br>> Dave DeMarle<br>><br>><br>> On 1/31/07, Mark Wyszomierski <markww@gmail.com> wrote:<br>> > Hi,<br>> ><br>> > I'm doing a MIP rendering. Is there a way to 'pick' a voxel in the<br>> > rendered volume? I was thinking that the user could click a voxel in<br>> > the MIP volume, then I could display the picked voxel's x,y,z<br>> >
location. Is this possible?<br>> ><br>> > Thanks,<br>> > Mark<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>> ><br>><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>