[Insight-users] How to Set RGB color to overlay of GLSliceview?

Luis Ibanez luis.ibanez at kitware.com
Thu, 04 Mar 2004 22:20:51 -0500


Hi Zhao,

Please look at the code of the
itk::ColorTable class in

   Insight/Code/Common

The method useHeat() uses by default
256 colors.  What is the pixel type
of your segmented image ?

If the segmented image is fully binary
you should simply put two color entries
in the color table.

You may also want to look at the code
of the fltkImageViewer.txx file in

  InsightApplications/Auxiliary/FltkImageViewer




Regards,


   Luis


------------------------
zhao yong qiang wrote:

> Hi all,
> 
> I use GLSliceView to display the 2d images, after I segment the source 
> images, I overlay the segmented part to the source image, and I want to 
> color it for easy distinguishing from the source image. My segmented and 
> source image are both gray-level. I use ColorTable->useHeat(). But  some 
> area of segment part is read, others are gray-level.
> 
>  Can someone tell me the reason? And any other methods to color the overlay?
> 
>  
> 
> Regards,
>                           Zhao Yongqiang
>                           Dept. of Computer Science & Engineering
>                           Shanghai JiaoTong University
>                           Shanghai, China
>                           zhao-yq at cs.sjtu.edu.cn 
> <mailto:zhao-yq at cs.sjtu.edu.cn>
> 
>  
>