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

Home » Public Forums » archive » Re: IDL 6.1 pixel size in Iimage
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: IDL 6.1 pixel size in Iimage [message #41814] Thu, 25 November 2004 05:05 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
maarten writes:


> I think
> iimage,rebin(d,250,250,/s) should do the trick

Of course, then you have to divide all the image
coordinates by 5, but you should probably be able
to do that in your head. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: IDL 6.1 pixel size in Iimage [message #41819 is a reply to message #41814] Thu, 25 November 2004 00:38 Go to previous messageGo to next message
maarten is currently offline  maarten
Messages: 30
Registered: April 2002
Member
Tony Lang wrote:
> Well, I must admit I'm a bit frustrated with the change in the way
> itools handle images in version 6.1. In 6.1 when displaying an image
> using Iimage it now appears so that 1 image pixel is 1 display pixel.
> So for example:
> d=bytscl(dist(5))
> iimage,d
> now yields this teeny weeny image, whereas in 6.0 it filled the entire
> viewport. For me that's a bit useless. Other than grabbing the image
> with the mouse and manually resizing it I have not been able to figure
> out how to scale the image at the command line. Any ideas out there?
>
> Tony Lang


I think
iimage,rebin(d,250,250,/s) should do the trick
Re: IDL 6.1 pixel size in Iimage [message #41943 is a reply to message #41814] Mon, 29 November 2004 06:31 Go to previous messageGo to next message
hotpb is currently offline  hotpb
Messages: 2
Registered: November 2004
Junior Member
Thanks for the replies all. I think rebin will get me most of the way
there, but David's point is well taken. One of the main issues with
using rebin is that it makes passing a two-dimensional array
representing the x or y coordinates of the image grid difficult. For
example, if I have a set of axis vaues for X and Y I'd get an error
that the dimensions of X do not correspond to the image. I think I can
get around that but I think it sort of defeats the purpose of the
original syntax:

IIMAGE[, Image[, X, Y]]

Cheers,
T.L.




David Fanning <davidf@dfanning.com> wrote in message news:<MPG.1c0f86a28d480a9a989887@news.frii.com>...
> maarten writes:
>
>
>> I think
>> iimage,rebin(d,250,250,/s) should do the trick
>
> Of course, then you have to divide all the image
> coordinates by 5, but you should probably be able
> to do that in your head. :-)
>
> Cheers,
>
> David
Re: IDL 6.1 pixel size in Iimage [message #44200 is a reply to message #41943] Tue, 31 May 2005 10:53 Go to previous message
plasmaman is currently offline  plasmaman
Messages: 1
Registered: May 2005
Junior Member
Instead of dragging the IIMAGE sizing tags try the following in the IIMAGE
window:
1. Open the visualization browser =
Window >> Visualization Browser...
2. Select Data Space from the menu =
Window >> View_1 >> Visualization Layer >> Data Space
3. In the Data Space Window set "Isotropic Scaling" to Anisotropic.
4. Set the Anistropic 2D scale to 1

I have not come up with a reliable way to automate this process yet.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: C++ in IDL
Next Topic: IDL 6.1 create_struct() peculiarity

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

Current Time: Sat Oct 11 05:38:20 PDT 2025

Total time taken to generate the page: 1.12052 seconds