Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large single-tile image and memory: need low level streaming implementation #94

Open
GoogleCodeExporter opened this issue Jul 18, 2015 · 13 comments

Comments

@GoogleCodeExporter
Copy link

The site 'http://marsoweb.nas.nasa.gov/HiRISE/hirise_images/'
allows the download of JP2 images.

I have downloaded

ESP_011277_1825_RED: Crater in Meridiani Planum with Layering

The downloaded file 'ESP_011277_1825_RED.JP2' has a size of
90'573'764 Byte.

On my LINUX 32-bit machine all viewers fail to show this image.

-----------------------------------
j2k_dump -i ESP_011277_1825_RED.JP2 > index

[ERROR] read error: passed the end of the codestream
   (start = -1307983864, current = -1217410100, end = -1217410100
[ERROR] tcd_decode: incomplete bistream
Segmentation fault
-----------------------------------
My simple JP2 reader shows:

[224]marker(0xff90)
sot  tile_nr(0) Psot(1'415'700'102) TPsot(0) TNsot(1)

-----------------------------------
free -m (i.e. megabytes)
             total    used    free  shared  buffers  cached
Mem:          2025     807    1217       0       58     685
-/+ buffers/cache:      64    1961
Swap:           23       0      23
-----------------------------------

Does this mean that my memory and swap space is too small for
such an image?

winfried


Original issue reported on code.google.com by szukw...@arcor.de on 26 Sep 2011 at 6:24

@GoogleCodeExporter
Copy link
Author

Perhaps it was the swap space. After extending the swap space to
8 GB, I got:

j2k_dump -v -i ESP_011277_1825_RED.JP2 -o index

Setting decoding area to 0,0,0,0
[INFO] Stream reached its end !
[ERROR] Stream too short
ERROR -> j2k_dump: failed read the tile header

winfried

Original comment by szukw...@arcor.de on 28 Sep 2011 at 7:21

@GoogleCodeExporter
Copy link
Author

I have now tested another HiRISE image: ESP_014256_1300_RED.JP2.
It has a size of 259'194'623 bytes.

Currently

 http://openjpeg.googlecode.com/svn/branches/openjpeg-1.5

returns revision 950.

In openjpeg-1.5-revision-950/application/codec/

both 'j2k_dump' and 'j2k_to_image' fail with 'Segmentation fault'.

'j2k_to_image' fails in 'libopenjpeg/t1.c'.

line 1556: y == 0, x == 0, tile_w == 14617, tile_dp == NULL

line 1557: clbk_h == 64

line 1558: cblk_w == 58

line 1559: j == 0, i == 0, tmp == -1025

winfried

Original comment by szukw...@arcor.de on 28 Sep 2011 at 8:20

@GoogleCodeExporter
Copy link
Author

Adding direct link:
http://hirise-pds.lpl.arizona.edu/download/PDS/RDR/ESP/ORB_011200_011299/ESP_011
277_1825/ESP_011277_1825_RED.JP2

Original comment by mathieu.malaterre on 11 Jan 2012 at 9:15

@GoogleCodeExporter
Copy link
Author

Original comment by mathieu.malaterre on 29 May 2012 at 1:18

@GoogleCodeExporter
Copy link
Author

This image is not tiled. This will be hard to deal with even using v2.

Original comment by mathieu.malaterre on 15 Oct 2012 at 3:28

@GoogleCodeExporter
Copy link
Author

Original comment by mathieu.malaterre on 25 Feb 2014 at 3:27

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

Issue 122 has been merged into this issue.

Original comment by mathieu.malaterre on 27 Feb 2014 at 8:14

@GoogleCodeExporter
Copy link
Author

Original comment by mathieu.malaterre on 27 Feb 2014 at 8:14

@GoogleCodeExporter
Copy link
Author

Original comment by mathieu.malaterre on 27 Feb 2014 at 8:15

  • Changed title: HiRISE image and memory: need low level streaming implementation

@GoogleCodeExporter
Copy link
Author

Issue 151 has been merged into this issue.

Original comment by mathieu.malaterre on 27 Feb 2014 at 1:32

@GoogleCodeExporter
Copy link
Author

Original comment by mathieu.malaterre on 6 Mar 2014 at 11:50

@GoogleCodeExporter
Copy link
Author

Original comment by mathieu.malaterre on 6 Mar 2014 at 11:51

  • Changed title: Large single-tile image and memory: need low level streaming implementation

@GoogleCodeExporter
Copy link
Author

Original comment by mathieu.malaterre on 7 Mar 2014 at 9:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant