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

Home » Public Forums » archive » Re: Writing JPEG2000 file
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: Writing JPEG2000 file [message #45429 is a reply to message #45406] Thu, 08 September 2005 05:03 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Raval,
If displayed on a single monitor, the image will not reflect the resolution
of the data set and thereofre you can safely used 'rebin' to turn the data
into a 1000x1000 array, which inturn should work with your code. If this
resolution is insuffient, try tiling the image.

Haje


<raval.chintan@gmail.com> wrote in message
news:1126087454.579398.30090@g44g2000cwa.googlegroups.com...
> Hello,
>
> I want to generate the JPEG2000 file from the tiff file which is
> containing 20000 samples and 20000 lines, I am writing the following
> code.
>
>
> jp2filename = 'abc'
> Data = read_tiff('c:\satellite.tif')
> imageDims = Size(data,/Dimension)
>
> ; Prepare JPEG2000 object property values.
> ncomponents = 3
> nLayers = 20
> nLevels = 6
> offset = [0,0]
> jp2TileDims = [1024, 1024]
> jp2TileOffset = [0,0]
> bitdepth = [8,8,8]
>
> ; Create the JPEG2000 image object.
> oJP2File = OBJ_NEW('IDLffJPEG2000',jp2filename , WRITE=1)
> oJP2File->SetProperty, N_COMPONENTS=nComponents, $
> N_LAYERS=nLayers, $
> N_LEVELS=nLevels, $
> OFFSET=offset, $
> TILE_DIMENSIONS=JP2TileDims, $
> TILE_OFFSET=JP2TileOffset, $
> BIT_DEPTH=bitDepth, $
> DIMENSIONS=[imageDims[1],ImageDims[2]]
>
>
> oJP2FILE->SetData, Data
> OBJ_DESTROY, oJP2FILE
>
>
>
> Now the problem is that IDL 6.2 is unable to allocate the memory for
> storing the data.
>
> Is there any other way to do this? If yes Then How one can do it?
>
> Thanks In Advance.
>
> Chintan Raval.
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Outputting data to Files
Next Topic: Re: Outputting data to Files

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

Current Time: Sun Oct 12 04:43:18 PDT 2025

Total time taken to generate the page: 1.12093 seconds