[vtkusers] Getting pixel values

Simon Warfield warfield at bwh.harvard.edu
Mon Jul 2 17:41:23 EDT 2001


On Mon, Jul 02, 2001 at 04:03:17PM -0700, Julian wrote:
> 
> 
> TJ Wilkinson wrote:
> > 
> > I am using vtkImager, vtkImageMapper, vtkActor2D to display 3D volumes
> > slice-wise.  
> 
> Is there anybody on this list who hasn't written a slice viewer???  Perhaps
> somebody (of course, not me!) should start a GNU type slice viewer project
> over at SourceForge.  (Note, I am as guilty of as everybody else of 
> rolling my own)

http://sourceforge.net/projects/slicer/
http://www.slicer.org/

 
> 
> I would like to probe the underlying pixel values.  Should I
> > use a Picker for this, or just use the interface somehow?  And once I have
> > the point in terms of the image extent, what method is appropriate to call
> > to find out the pixel value?  Do I need to GetScalarPointer and index to
> > the pixel in question?
> 
> 
> As I suspect many others have, I use a widget library to make handling of
> things like window and mouse interaction easier.  In my case it was 
> wxPython with a mouse motion event handler.  In the event handler I  use
> GetPixelData from the current render window and write x and y position and
> scalar value to the window with a textmapper.  This is also a simple way to
> navigate through the stack, alter contrast, etc.
> 
> Incidently, I have found the combination of VTK and wxPython to work quite
> well.  Throw in a little PIL and you can input and output most anything.
> 
> Julian Humphries
> University of Texas
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

-- 
Simon Warfield, Ph.D. warfield at bwh.harvard.edu Phone:617-732-7090
http://www.spl.harvard.edu/~warfield           FAX:  617-582-6033
Thorn 329, Brigham and Women's Hospital, Harvard Medical School
Department of Radiology, 75 Francis St, Boston, MA, 02115




More information about the vtkusers mailing list