<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="white-space: pre-wrap;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">Thanks Even for the quick response. I'll give it a try with setting </span><span><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">OPJ_NUM_THREADS
 env variable to 8. Does it need to be used with </span><span style="color: rgb(34, 34, 34); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">GDAL_NUM_THREADS ? Any url to read about those two env variables ?</span></span></p>
<p style="white-space: pre-wrap;"><span><span style="color: rgb(34, 34, 34); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></span></p>
<p style="white-space: pre-wrap;"><span><span style="color: rgb(34, 34, 34); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">The two dataset i used:</span></span></p>
<p style="white-space: pre-wrap;"><a href="http://data.opengee.org/FusionTutorial-Full.tar.gz" class="OWAAutoLink" id="LPlnk862217" previewremoved="true"></a></p>
<div><a href="http://data.opengee.org/FusionTutorial-Full.tar.gz" class="OWAAutoLink" previewremoved="true">https://1drv.ms/u/s!AkFDoDHsFe7_hkBS6GbG4xMqnk6t</a></div>
<div><a href="http://data.opengee.org/FusionTutorial-Full.tar.gz" class="OWAAutoLink" previewremoved="true">https://1drv.ms/u/s!AkFDoDHsFe7_hkG1-XDo7UztsPoC</a></div>
<div><br>
</div>
<div>p.s: i'm using GDAL 2.1.2</div>
<p></p>
<p style="white-space: pre-wrap;"><br>
</p>
<p style="white-space: pre-wrap;">Noureddine</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Even Rouault <even.rouault@spatialys.com><br>
<b>Sent:</b> Monday, August 28, 2017 1:40:31 PM<br>
<b>To:</b> N. Farah<br>
<b>Cc:</b> gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [gdal-dev] Fwd: [OpenJPEG] OpenJPEG 2.2.0 is out ! Faster and safer.</font>
<div> </div>
</div>
<div>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">Hi,</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> I rebuilt GDAL (older version: 2.1.2) using this new open jpeg 2.2.0</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> (https://github.com/uclouvain/openjpeg/releases/download/v2.2.0/openjpeg-v2</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> .2.0-linux-x86_64.tar.gz)</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> and tried to convert two jp2 dataset to tiff (gdal_translate):</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> - bluemarble_4km.jp2: (10800 x 5400 pixels). 37.3 mb file size.</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> - usgsLanSat.jp2: (8627 x 7745 pixels). 48 mb file size.</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">Do you know if they use JPEG2000 tiling ?</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> Tests were run on virtual machine with ‘Ubuntu 16.04’ operation system, 18</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> gb RAM and 2 CPU processors.</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> These results were not expected since the new openJpeg should be faster than</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> the previous one. Could this be cause by 'gdal_translate' not using threads</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">> that the new openjpeg uses for performance boost ?</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">By default, GDAL will now enable openjpeg thread support. So you need to set the OPJ_NUM_THREADS environment variable. That said, you should already get significant performance improvements even
 without enabling multi-threading. I'm not sure why you don't get them.</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">I'd be interested if you could share those images.</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">Even</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;"> </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">-- </p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">Spatialys - Geospatial professional services</p>
<p style="margin: 0px; text-indent: 0px; white-space: pre-wrap;">http://www.spatialys.com</p>
</div>
</div>
</body>
</html>