Re: image size [message #9975 is a reply to message #9971] |
Thu, 18 September 1997 00:00  |
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
____________________________________________________________ ______________
|
|
|