[vtkusers] Question with vtkImageViewer2
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Aug 12 06:12:46 EDT 2008
On Tue, Aug 12, 2008 at 3:50 AM, Ken Urish <ken.urish at gmail.com> wrote:
> For the class vtkImageViewer2, is there any logic why it only works
> with greyscale unsigned char pixel types??? I want to extend its
> functionality to rgb signed short. I know this is a wrapper class, and
> Im trying to see how difficult it will be to change the code myself to
> add this functionality. This is the first time I am tweaking vtk
> source code so I am trying to triage any unexpected problems.
See the answer of my post:
http://www.vtk.org/pipermail/vtk-developers/2007-August/004688.html
The solution I implemented is available in GDCM tarball,
http://gdcm.sourceforge.net/wiki/index.php/GDCM_Release_2.0
or online at:
https://gdcm.svn.sf.net/viewvc/gdcm/trunk/Utilities/VTK/vtkImageMapToWindowLevelColors2.h
https://gdcm.svn.sf.net/viewvc/gdcm/trunk/Utilities/VTK/vtkImageMapToWindowLevelColors2.cxx
HTH
--
Mathieu
More information about the vtkusers
mailing list