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

Home » Public Forums » archive » Re: huge image file.
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: huge image file. [message #66733] Thu, 11 June 2009 10:51
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
thanks all, some good suggestions.

cheers,
bob
Re: huge image file. [message #66752 is a reply to message #66733] Wed, 10 June 2009 07:46 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Jun 9, 1:48 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Using object graphics the IDLgrbuffer and the IDLgrclipboard have the
> limitation of 4096x4096. I'm not sure if using direct graphics the
> limitation is the same, but I think is it.

No, direct graphic windows (at least in the X device) can be larger
than
that. There's still a limit somewhere of course, but it is not 4096.

Ciao,
Paolo

> Maybe you can create an image and congrid its data. Using object
> graphics, you can try something like this:
>
>     buffer=OBJ_NEW('IDlgrBuffer',DIMENSIONS=[4096,4096])
>     buffer->Draw, view ;; the view where you've the data
>
>     oImage=buffer->Read() ;; you get the image
>     oImage->GetProperty, DATA=data_image ;; the data of the image
>     data=CONGRID(data,4,12000,12000) ;; create the big image
>
>     WRITE_PNG, filename, data ;; save the image in a png file
>
> I think this is possible. Using direct graphics you can do something
> similar with the Z-buffer and TVRD procedure. Creates a 4096x4096
> image and then you can congrid the image in order to obtain your
> poster
> Cheers,
> nata
Re: huge image file. [message #66753 is a reply to message #66752] Wed, 10 June 2009 06:46 Go to previous message
dcleon@gmail.com is currently offline  dcleon@gmail.com
Messages: 12
Registered: November 2007
Junior Member
On Jun 9, 1:02 pm, mankoff <mank...@gmail.com> wrote:
> On Jun 9, 1:07 pm, "R.G. Stockwell" <noemai...@please.com> wrote:
>
>
>
>
>
>> I would like to make a poster presentation, so I want to
>> create an image that is something like 300 dots/inch*40 inches
>> (i.e 12,000 pixels long) and perhaps 8000 high.
>
>> Anyone do anything like this before?
>
>> I'd actually have the data to create the image that large, that'd be the
>> point of the presentation.
>
>> It looks like that is not possible in postscript, so I was thinking create
>> a huge jpg in the z-buffer or something like that.
>
>> any ideas on the best way to do this?
>
>> cheers,
>> bob
>
> I'd produce sections and then try to use ImageMagick to assemble.
>
>   -k.

I've actually done this: Create an object graphics hirearcy, then use
VIEWPLANE_RECT to scan through chunks. It turns out that routines like
WRITE_PNG don't have the same dimensional limits as IDLgrBuffer does,
so the image can be reassembled in IDL before using something like
write_png to output a file.

I'll dig up the code I used for this to make sure that what I
described is actually what I did.
Cheers
dave
Re: huge image file. [message #66760 is a reply to message #66753] Tue, 09 June 2009 12:02 Go to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Jun 9, 1:07 pm, "R.G. Stockwell" <noemai...@please.com> wrote:
> I would like to make a poster presentation, so I want to
> create an image that is something like 300 dots/inch*40 inches
> (i.e 12,000 pixels long) and perhaps 8000 high.
>
> Anyone do anything like this before?
>
> I'd actually have the data to create the image that large, that'd be the
> point of the presentation.
>
> It looks like that is not possible in postscript, so I was thinking create
> a huge jpg in the z-buffer or something like that.
>
> any ideas on the best way to do this?
>
> cheers,
> bob

I'd produce sections and then try to use ImageMagick to assemble.

-k.
Re: huge image file. [message #66762 is a reply to message #66760] Tue, 09 June 2009 10:48 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Using object graphics the IDLgrbuffer and the IDLgrclipboard have the
limitation of 4096x4096. I'm not sure if using direct graphics the
limitation is the same, but I think is it.
Maybe you can create an image and congrid its data. Using object
graphics, you can try something like this:

buffer=OBJ_NEW('IDlgrBuffer',DIMENSIONS=[4096,4096])
buffer->Draw, view ;; the view where you've the data

oImage=buffer->Read() ;; you get the image
oImage->GetProperty, DATA=data_image ;; the data of the image
data=CONGRID(data,4,12000,12000) ;; create the big image

WRITE_PNG, filename, data ;; save the image in a png file

I think this is possible. Using direct graphics you can do something
similar with the Z-buffer and TVRD procedure. Creates a 4096x4096
image and then you can congrid the image in order to obtain your
poster
Cheers,
nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: same value, same color, different pictures
Next Topic: About the EXTEND COMMON BLOCK error message

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

Current Time: Wed Oct 08 13:32:45 PDT 2025

Total time taken to generate the page: 0.00946 seconds