comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Writing display as jpeg
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Writing display as jpeg [message #25448] Wed, 13 June 2001 23:46
Alok Nagdev is currently offline  Alok Nagdev
Messages: 11
Registered: April 2001
Junior Member
Thanks much!! Its working now :).

-Alok



Reimar Bauer wrote:

> Alok Nagdev wrote:
>>
>> Francesco wrote:
>>
>>> If this could be of any help this is the code I use
>>>
>>> namejpg = 'sigmacoor.jpg'
>>> jpg_pic=tvrd(0,0,xw_grids,yw_grids,true=3)
>>> write_jpeg,namejpg,jpg_pic,true=3
>>>
>>
>> yes, thats how I was trying to write but its not working, even I work on
>> IDL 5.4, shall check it once more with your code and Reimar's
>> suggestion.
>>
>
> Dear Alok,
>
> on my machine this is ok.
>
> please show me youre !version information.
>
> Reimar
>
>> Thanks,
>>
>
>> -Alok
>>
>>>
>>> It works fine for me with IDL 5.4 and win98.
>>>
>>> Before using true=3 I had some problem with colours.
>>>
>>> Ciao
>>>
>>> Francesco
>
> --
> Reimar Bauer
>
> Institut fuer Stratosphaerische Chemie (ICG-1)
> Forschungszentrum Juelich
> email: R.Bauer@fz-juelich.de
> http://www.fz-juelich.de/icg/icg1/
> ============================================================ ======
> a IDL library at ForschungsZentrum Juelich
> http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
>
> http://www.fz-juelich.de/zb/text/publikation/juel3786.html
> ============================================================ ======
>
> read something about linux / windows
> http://www.suse.de/de/news/hotnews/MS.html
Re: Writing display as jpeg [message #25462 is a reply to message #25448] Wed, 13 June 2001 07:06 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Alok Nagdev wrote:
> I'm stuck on a very simple problem. I need to read an image from the
> display and write as a jpeg, I get it written but then the image is very
> much distorted. Please advise.
>
> I'm reading the display using TVRD() and writing it as true color! Also
> I load the color tables before I read it as true color image.

http://cimss.ssec.wisc.edu/~gumley/imagetools.html

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley/
Re: Writing display as jpeg [message #25463 is a reply to message #25462] Wed, 13 June 2001 06:29 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hello,

You might try to use TVRead from David Fanning's website. It handles
all of the subtle issues regarding display depth, etc. I think he has
written in an additional bit of code for saving the image in different
formats. Liam Gumley has a similar program called SaveImage (you can
get it through David's annotate links page.)

Regards,

Ben



Alok Nagdev wrote:
>
> I'm stuck on a very simple problem. I need to read an image from the
> display and write as a jpeg, I get it written but then the image is very
> much distorted. Please advise.
>
> I'm reading the display using TVRD() and writing it as true color! Also
> I load the color tables before I read it as true color image.
>
> Thanks,
>
> -Alok

--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
Re: Writing display as jpeg [message #25467 is a reply to message #25463] Tue, 12 June 2001 23:36 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Alok Nagdev wrote:
>
> Francesco wrote:
>
>> If this could be of any help this is the code I use
>>
>> namejpg = 'sigmacoor.jpg'
>> jpg_pic=tvrd(0,0,xw_grids,yw_grids,true=3)
>> write_jpeg,namejpg,jpg_pic,true=3
>>
>
> yes, thats how I was trying to write but its not working, even I work on
> IDL 5.4, shall check it once more with your code and Reimar's
> suggestion.
>

Dear Alok,

on my machine this is ok.

please show me youre !version information.

Reimar


> Thanks,
>



> -Alok
>
>>
>> It works fine for me with IDL 5.4 and win98.
>>
>> Before using true=3 I had some problem with colours.
>>
>> Ciao
>>
>> Francesco

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
Re: Writing display as jpeg [message #25468 is a reply to message #25467] Tue, 12 June 2001 17:33 Go to previous message
Alok Nagdev is currently offline  Alok Nagdev
Messages: 11
Registered: April 2001
Junior Member
Francesco wrote:

> If this could be of any help this is the code I use
>
> namejpg = 'sigmacoor.jpg'
> jpg_pic=tvrd(0,0,xw_grids,yw_grids,true=3)
> write_jpeg,namejpg,jpg_pic,true=3
>

yes, thats how I was trying to write but its not working, even I work on
IDL 5.4, shall check it once more with your code and Reimar's
suggestion.

Thanks,

-Alok



>
> It works fine for me with IDL 5.4 and win98.
>
> Before using true=3 I had some problem with colours.
>
> Ciao
>
> Francesco
Re: Writing display as jpeg [message #25469 is a reply to message #25468] Tue, 12 June 2001 17:36 Go to previous message
Alok Nagdev is currently offline  Alok Nagdev
Messages: 11
Registered: April 2001
Junior Member
I feel this could be a problem with reading the display rather than some
problem with the code.

-Alok


Alok Nagdev wrote:

> Francesco wrote:
>
>> If this could be of any help this is the code I use
>>
>> namejpg = 'sigmacoor.jpg'
>> jpg_pic=tvrd(0,0,xw_grids,yw_grids,true=3)
>> write_jpeg,namejpg,jpg_pic,true=3
>>
>
> yes, thats how I was trying to write but its not working, even I work on
> IDL 5.4, shall check it once more with your code and Reimar's
> suggestion.
>
> Thanks,
>
> -Alok
>
>>
>> It works fine for me with IDL 5.4 and win98.
>>
>> Before using true=3 I had some problem with colours.
>>
>> Ciao
>>
>> Francesco
Re: Writing display as jpeg [message #25471 is a reply to message #25468] Tue, 12 June 2001 15:07 Go to previous message
francesco.spada is currently offline  francesco.spada
Messages: 8
Registered: April 2001
Junior Member
If this could be of any help this is the code I use

namejpg = 'sigmacoor.jpg'
jpg_pic=tvrd(0,0,xw_grids,yw_grids,true=3)
write_jpeg,namejpg,jpg_pic,true=3

It works fine for me with IDL 5.4 and win98.

Before using true=3 I had some problem with colours.

Ciao

Francesco
Re: Writing display as jpeg [message #25472 is a reply to message #25471] Tue, 12 June 2001 14:09 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Alok Nagdev wrote:
>
> I'm stuck on a very simple problem. I need to read an image from the
> display and write as a jpeg, I get it written but then the image is very
> much distorted. Please advise.
>
> I'm reading the display using TVRD() and writing it as true color! Also
> I load the color tables before I read it as true color image.
>
> Thanks,
>
> -Alok

Hi Alok,

you should try /TWO_PASS_QUANTIZE.

regards

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Object graphics color scattergram
Next Topic: mouse events

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:52:03 PDT 2025

Total time taken to generate the page: 0.00849 seconds