[Insight-users] fltk viewer

Luis Ibanez luis.ibanez@kitware.com
Mon, 30 Sep 2002 16:57:44 -0400


Hi Zein,

The Overlay type for the fltkImageViewer doesn't have
to be <unsigned char>.  That's in fact the reason why
the OverlayPixelType is a template argument.



The viewer delegates all the drawing to a class called
GLSliceView that you can find in

  Insight/Auxiliary/FltkImageViewer/GLSliceView.h

You may see the effect of the OverlayPixelType on
lines 634 to 692.   Take into account that the overlay
is expected to manage a user-defined color map.

The typical use of the overlay is to draw diagramas on
color on top of the image drawn on gray levels but you
can use it  in a different way.

Keep in mind that the pixel values of the Overlay image
are used as indices on a color map. You will have to make
sure that the color map has enough component for all the
possible values of the Overlay image pixels. For example
it will be a problem to provide a color map with 16 entries
and at the same time connect an Overlay image containing
pixel values higher than 16.


     Luis




=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Zein Salah wrote:

> Hi,
>
> =20
>
> Must the overlay pixel type for the fltk viewer be unsigned char ??????=

>
> =20
>
>   typedef unsigned char  OverlayPixelType;
>   typedef fltk::ImageViewer< PixelType, OverlayPixelType >     =20
> ImageViewerType;
>
> =20
>
> Thanks.
>
> =20
>
> ->8<------------->8<------------->8<------------->8<------------->8<---=
---------->8<-
> Zein I. Salah
> Universit=E4t T=FCbingen, WSI-GRIS
> Sand 14
> 72076 T=FCbingen
> Email: salah@gris.uni-tuebingen.de=20
> <mailto:salah@gris.uni-tuebingen.de>   / zeinsalah@hotmail.com=20
> <mailto:zeinsalah@hotmail.com>
> Tel.: (07071) 29 75465 (GRIS) , (07071) 96 44 39 (privat)
> Fax: (07071) 29 54 66
>