<div dir="ltr"><div>Hi all,<br><br><br></div>This is just some food for thought and discussion. I've take a cursory look at JPEG 2000 openjpeg. I think it may hold promise for a possible future format or co-format for Postgis Raster in database storage.<br>
<ul><li>Supports both Loss less and Lossful Compression approaching the performance of ERDAS ( uncompressed Gtif 200M, openjpeg JP2  25M Lossfull and 80M Lossless, ERDAS JP2 15M)</li><ul><li>I don't have a ERADAS encoder license, but this image was of the same original</li>
<li>Openjpeg lossfull compression in my opinion visually identical to the original with default settings<br></li></ul><li>Supports N band imagery</li><li>Multi-Resolution Packing <br></li><ul><li>eg more than one raster resolution with in the "code stream"</li>
<li>can be ordered by user specification, default smallest to largest<br></li><li>This would allow us to get rid of the overview tables or make them views.</li><li><a href="http://ericportis.com/posts/2014/resolution-progressive-jpeg2000-performance/">http://ericportis.com/posts/2014/resolution-progressive-jpeg2000-performance/</a><br>
</li></ul><li>Extensible header</li><ul><li>SRID, IPX,IPY, etc<br></li></ul><li>Area of interest specification </li><ul><li>Allows you to specify a region with in the same raster to have a higher bitrate, etc</li></ul><li>
Error Detection and Correction</li><li>Openjpeg project seems to be alive last commit was a few days a go.</li><li>BSD License</li></ul><p><br></p><p>Possible Concerns identified so far:</p><ul><li>Writes require a recode of the entire tile, however the tile size is user specifiable</li>
<li>takes a long time to encode image, ~10 sec on my system with the test image ( 3067x3777 8bit 4bands) </li><ul><li>I dont have anything to compare it to, so I dont know if this is a good or bad</li><li>I havent tested on small image size and other possible scenarios.  <br>
</li></ul><li>Memory Usage seemed high during decode and encode, ~2G, I believe this is due to the decoder and encoder preallocate memory for all of the "Pyramids" and bands at once. (but have not investigated thoroughly) ( Image Res 3067x 3777  8bit  4 bands)</li>
<li>Its included decoder application has weird issues with tif, other formats are fine. ( Dont think it has anything to do with the openjpeg lib)</li><ul><li>May be indective of other problems<br></li></ul></ul><p>If I were to start on this project it would be some time in the future and I would most likely require help and lots of input, but I thought I it would be a good idea to bring, it up as a discussion point.</p>
<p>Any thoughts,<br></p><p><br></p><p>Nathaniel Hunter Clay<br></p></div>