[vtkusers] Pick a pixel in DICOM series

Manuel Corrales manuelcorrales at gmail.com
Thu Jun 20 18:39:16 EDT 2013


Hello,

I am displaying a DICOM series using vtk and "navigating" through the
slices using mouse interaction. I need to pick a pixel from the displayed
image, and I expected to get something like an array of coordinates e.g:
(142, 342, 13) assuming I can use this to actually fetch the data from the
vtkImageData structure.

I tried to use the PickPixel and PickPixel examples from the wiki, but I
get coordinates with negative numbers

(Location: ( -49.3894, 37.2297, -97.2094 ))

and don't know what to do with that. My goal is to be able to pick a pixel,
get a coordinate and being able to use that coordinate to fetch the pixel
color from the vtkImageData.

Any hints?

Regards,
Manuel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130620/9850298f/attachment.htm>


More information about the vtkusers mailing list