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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: image size [message #9964] Fri, 19 September 1997 00:00
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
In article <342128D8.195E@ndsi.ibb.ch>,
Nicolas Stern <ih6stn@ndsi.ibb.ch> writes:
> Thanks for the answer !
>
> In the meantime: the artefact must be a Paint Shop Pro - specific
> effect: the same file has the correct dimension when opened with some
> other image processing tool (AdobePhotoshop).
>
> BTW , I'm running IDL5.0 under NT4.0. The syntax specifications
> (write_tiff, []) are new in IDL5.0.

Ooops, just recognized that. Pretty way of writing not backward
compatible code :-(

FVIW, I tested again (Solaris 2.4, IDL 5.0, XV) and its OK, too.
So it's really a problem of PSP (and obviously PowerPoint, as Dave seems
to have the same problem).

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
____________________________________________________________ ______________
Re: image size [message #9971 is a reply to message #9964] Thu, 18 September 1997 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Peter Suetterlin wrote:
>
> In article <34200F01.C40@ndsi.ibb.ch>,
> Nicolas Stern <ih6stn@ndsi.ibb.ch> writes:
>
>> 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.)

I've noticed a similar problem saving .tif files in IDL and trying to
read them in PowerPoint (PC Windows, ugghh!). The dimensions get
screwed up. Perhaps this is a peculiarity with the .tif image
format.

Our system is Solaris 2.5, IDL 5.0 (noticed this with 4.0.1 also).

Anyone else have this problem?

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: image size [message #9973 is a reply to message #9971] Thu, 18 September 1997 00:00 Go to previous message
Nicolas Stern is currently offline  Nicolas Stern
Messages: 2
Registered: September 1997
Junior Member
Thanks for the answer !

In the meantime: the artefact must be a Paint Shop Pro - specific
effect: the same file has the correct dimension when opened with some
other image processing tool (AdobePhotoshop).

BTW , I'm running IDL5.0 under NT4.0. The syntax specifications
(write_tiff, []) are new in IDL5.0.
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
____________________________________________________________ ______________
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 18:41:16 PDT 2025

Total time taken to generate the page: 0.01053 seconds