[vtkusers] picking a voxel in a MIP volume
ahmed saad
ahmedalysaad2004 at yahoo.com
Thu Feb 1 11:30:59 EST 2007
Hi,
I think I solved this problem before.
Some Hints:
1) take the nearest point on the bounding box around the volume rendered object (vtkCellPicker)
2) shot a ray from this point perpendicular to the view direction.
3) get the intersection points along this ray to the volume data.
4) get the location (x,y,z) for the maximum intensity point(s).
5) if you have more than one point with maximum intensity. Choose the nearest one with respect to the viewer.
Best regards,
Ahmed Saad
----- Original Message ----
From: Mark Wyszomierski <markww at gmail.com>
To: David E DeMarle <dave.demarle at kitware.com>
Cc: vtkusers at public.kitware.com
Sent: Thursday, February 1, 2007 6:52:54 AM
Subject: Re: [vtkusers] picking a voxel in a MIP volume
hmm ok looks like i have to hack into the mapper then,
thanks,
mark
On 1/31/07, David E DeMarle <dave.demarle at kitware.com> wrote:
> I do not believe there is anything built in to do that. vtkCellPicker
> will obtain the closest cell along the ray for that pixel (the one on
> the near face) not the one that has the maximum value that you see
> there.
>
> Dave DeMarle
>
>
> On 1/31/07, Mark Wyszomierski <markww at gmail.com> wrote:
> > Hi,
> >
> > I'm doing a MIP rendering. Is there a way to 'pick' a voxel in the
> > rendered volume? I was thinking that the user could click a voxel in
> > the MIP volume, then I could display the picked voxel's x,y,z
> > location. Is this possible?
> >
> > Thanks,
> > Mark
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070201/813b9f45/attachment.htm>
More information about the vtkusers
mailing list