[vtkusers] vtkImageData Grey to RGB

Arnolfo Marciales marciale at ula.ve
Thu Nov 23 21:26:11 EST 2006


Hi everyone,

I try to use mask class like example
Tcl - /Imaging/Testing/Tcl/TestMask2.tcl

in a vtkimagedata from a dicom slice

i want my mask have a 0.5 alpha and a red color (rgb 255 0 0)

The pipeline works, but the mask is in grayscale. I use also:

vtkLookupTable mcolors2
mcolors2 SetTableRange 0 2550
mcolors2 SetHueRange 0 1
mcolors2 SetSaturationRange 0 1
mcolors2 SetAlphaRange 1 1
mcolors2 SetValueRange 0 1

mcolors2 Build

vtkImageMapToColors mcolors
mcolors SetInput [mask GetOutput]
mcolors SetLookupTable mcolors2
mcolors SetOutputFormatToRGBA


but my image still have one scalar and not the 3 scalars for RGB image.
How i do it?

please help me

thanks,
Fito




More information about the vtkusers mailing list