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

Home » Public Forums » archive » 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
Writing JPEG2000 file [message #45447] Wed, 07 September 2005 03:04 Go to previous message
raval.chintan is currently offline  raval.chintan
Messages: 54
Registered: May 2005
Member
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
Previous Topic: Re: Replication question
Next Topic: is there a simple solution for the memory problem?

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

Current Time: Sat Oct 11 07:14:58 PDT 2025

Total time taken to generate the page: 1.03948 seconds