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

Home » Public Forums » archive » Re: image size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: image size [message #9975 is a reply to message #9971] Thu, 18 September 1997 00:00 Go to previous message
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
In article <34200F01.C40@ndsi.ibb.ch>,
Nicolas Stern <ih6stn@ndsi.ibb.ch> writes:
> Did anyone see something similar happen :
> I use write_tiff to save arrays as true color image.
>
> array_1=bytarr(512,512)
> array_2=bytarr(512,512)
> array_3=bytarr(512,512)
> array_1[*,*]=255
> array_2[*,*]=10
> array_3[*,*]=10

you mean array_?(*,*)

> WRITE_TIFF, 'test.tif',
> RED=array_1,GREEN=array_2,BLUE=array_2,PLANARCONFIG = 2

I assume you use tiff_write!?

> Now, when I open the test.tif image with an image processing soft (PSP,
> v4.0), the image size is 491*491 ! Saving a 512*512 byte array as a
> grayscale image doesn't produce a similar artefact ! (I suppose the
> problem does not come from IDL.)

Tested it (Linux, IDL 4.0, viewer XV). No problems at all, correct
sizes and correct color.
What System are you using?

Peter

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Peter "Pit" Suetterlin http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048 pit@uni-sw.gwdg.de
-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * --
Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB
Sternfreunde Breisgau e.V. Tel.: +49 7641 3492
____________________________________________________________ ______________
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Frame Tools now have portable SAVE and RESTORE
Next Topic: plotting contours thru saddle points

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

Current Time: Sat Oct 11 05:37:57 PDT 2025

Total time taken to generate the page: 0.72027 seconds