Re: Writing display as jpeg [message #25448] |
Wed, 13 June 2001 23:46 |
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 #25463 is a reply to message #25462] |
Wed, 13 June 2001 06:29  |
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  |
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  |
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  |
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  |
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
|
|
|
|