Opened 2 months ago

Closed 2 months ago

Last modified 2 months 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 2 months ago.
Sample image to reproduce the problem

Download all attachments as: .zip

Change History (4)

Changed 2 months ago by trastourf

Sample image to reproduce the problem

comment:1 Changed 2 months ago by Even Rouault

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 Changed 2 months ago by Even Rouault

In 39903:

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

comment:3 Changed 2 months ago by Even Rouault

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