[vtkusers] vtkImageMapToColors

Brandi Pitta brandimichelle415 at gmail.com
Wed Jun 10 17:08:29 EDT 2009


Hello everybody,

I have a question about vtkImageMapToColors.  I have the following method:

def ConvertToRGBA(self, image, colormap):

       self.img = image
       self.colormap = colormap

       self.ImageColor = vtkImageMapToColors()
       self.ImageColor.SetInput(self.img)
       self.ImageColor.UpdateWholeExtent()

Yet, after this method is called image (or the input to the
vtkImageMapTo Colors()) is also altered.  Can anyone explain why or a
way to prevent it.

Thanks,
Brandi



More information about the vtkusers mailing list