[Insight-users] how can I display a 2D color .png image using fltk

Samuel Rodríguez Bescos srodrigu at gbt . tfo . upm . es
Wed, 31 Jul 2002 16:27:35 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0054_01C238AF.2D6D3840
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I think this class is only for one band  images. I think that in your =
case the viewer take the first band. I don't know which class can you =
use for color images.

So sorry.

Samuel=20

  ----- Original Message -----=20
  From: Zein Salah=20
  To: Samuel Rodr=EDguez Bescos=20
  Sent: Wednesday, July 31, 2002 4:01 PM
  Subject: Re: [Insight-users] how can I display a 2D color .png image =
using fltk


  Hi Samuel,

  Thanks for the reply!!

  I have tried. The output is a gray-scale image, eventhough the input =
image is a color .png image!!!=20
  what could the problem be??

  thanks again,
  Zein

    ----- Original Message -----=20
    From: Samuel Rodr=EDguez Bescos=20
    To: Zein Salah=20
    Sent: Wednesday, July 31, 2002 3:18 PM
    Subject: Re: [Insight-users] how can I display a 2D color .png image =
using fltk


    You can use the class fltk::Image2DViewer<unsigned short>

    Samuel

      ----- Original Message -----=20
      From: Zein Salah=20
      To: ITK Users=20
      Sent: Wednesday, July 31, 2002 1:37 PM
      Subject: [Insight-users] how can I display a 2D color .png image =
using fltk


      hello all,

      how can I display a 2D color .png image using fltk? what is the =
suitable viewer to use? how can it be templated?
      Thanks in advance.

      Zein


      =
->8<------------->8<------------->8<------------->8<------------->8<-----=
-------->8<-
      Zein I. Salah=20
      Universit=E4t T=FCbingen, WSI-GRIS=20
      Sand 14=20
      72076 T=FCbingen=20
      Email: salah@gris.uni-tuebingen.de  / zeinsalah@hotmail.com
      Tel.: (07071) 29 75465 (GRIS) , (07071) 96 44 39 (privat)=20

------=_NextPart_000_0054_01C238AF.2D6D3840
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2>
<P>I think this class is only for&nbsp;one band &nbsp;images. I think =
that in=20
your case the viewer take the first band. I don't know which class can =
you use=20
for color images.</P>
<P>So sorry.</P>
<P>Samuel&nbsp;</P></FONT></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dsalah@gris.uni-tuebingen.de=20
  href=3D"mailto:salah@gris.uni-tuebingen.de">Zein Salah</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dsrodrigu@gbt.tfo.upm.es=20
  href=3D"mailto:srodrigu@gbt.tfo.upm.es">Samuel Rodr=EDguez Bescos</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, July 31, 2002 =
4:01=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Insight-users] =
how can I=20
  display a 2D color .png image using fltk</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi Samuel,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks for the reply!!</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have tried. The output is a =
gray-scale image,=20
  eventhough the input image is a color .png image!!! </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>what could the problem =
be??</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>thanks again,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Zein</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3Dsrodrigu@gbt.tfo.upm.es=20
    href=3D"mailto:srodrigu@gbt.tfo.upm.es">Samuel Rodr=EDguez =
Bescos</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
    title=3Dsalah@gris.uni-tuebingen.de=20
    href=3D"mailto:salah@gris.uni-tuebingen.de">Zein Salah</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, July 31, =
2002 3:18=20
    PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Insight-users] =
how can I=20
    display a 2D color .png image using fltk</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=3DArial size=3D2>You can use the class=20
    fltk::Image2DViewer&lt;unsigned short&gt;</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Samuel</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV style=3D"FONT: 10pt arial">----- Original Message ----- =
</DIV>
      <DIV=20
      style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
      <A title=3Dsalah@gris.uni-tuebingen.de=20
      href=3D"mailto:salah@gris.uni-tuebingen.de">Zein Salah</A> </DIV>
      <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
      title=3Dinsight-users@public.kitware.com=20
      href=3D"mailto:insight-users@public.kitware.com">ITK Users</A> =
</DIV>
      <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, July 31, =
2002 1:37=20
      PM</DIV>
      <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Insight-users] =
how can I=20
      display a 2D color .png image using fltk</DIV>
      <DIV><BR></DIV>
      <DIV><FONT face=3DArial size=3D2>hello all,</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>how can I display a 2D color .png =
image using=20
      fltk? what is the suitable viewer to use? how can it be=20
      templated?</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>Zein</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face=3DArial=20
      =
size=3D2>-&gt;8&lt;-------------&gt;8&lt;-------------&gt;8&lt;----------=
---&gt;8&lt;-------------&gt;8&lt;-------------&gt;8&lt;-<BR>Zein=20
      I. Salah <BR>Universit=E4t T=FCbingen, WSI-GRIS <BR>Sand 14 =
<BR>72076 T=FCbingen=20
      <BR>Email: <A=20
      =
href=3D"mailto:salah@gris.uni-tuebingen.de">salah@gris.uni-tuebingen.de</=
A>&nbsp;=20
      / <A=20
      =
href=3D"mailto:zeinsalah@hotmail.com">zeinsalah@hotmail.com</A><BR>Tel.: =

      (07071) 29 75465 (GRIS) , (07071) 96 44 39 (privat)=20
    </FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0054_01C238AF.2D6D3840--