Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7012 closed enhancement (fixed)

OpenJPEG Driver inefficient on images with small tiles

Reported by: trastourf Owned by: warmerdam
Priority: normal Milestone: 2.2.2
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: OpenJPEG
Cc:

Description

The OpenJPEG driver is very slow with Sentinel Quicklooks like : http://sentinel-s2-l1c.s3-website.eu-central-1.amazonaws.com/tiles/31/T/EN/2017/5/26/0/preview.jp2

It seems the problem is related to the blocksize of the images (8x8) - internal tiles are processed one at a time which in this case leads to a very poor performance;

gdal_translate image.jp2 image.tif

takes about 7 seconds to execute (image size is 343x343).

Attachments (1)

small_image_with_many_tiles.jp2 (161.4 KB ) - added by trastourf 7 years ago.
Sample image to reproduce the problem

Download all attachments as: .zip

Change History (4)

by trastourf, 7 years ago

Sample image to reproduce the problem

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 39902:

JP2OpenJPEG: fix performance issues with small images with very small tile size, such as some Sentinel2 quicklooks (fixes #7012)

comment:2 by Even Rouault, 7 years ago

In 39903:

JP2OpenJPEG: fix performance issues with small images with very small tile size, such as some Sentinel2 quicklooks (fixes #7012)

comment:3 by Even Rouault, 7 years ago

Milestone: 2.2.2
Note: See TracTickets for help on using tickets.