Hey all,
Just a quick update - I updated the wrapper to use the OpenJPEG 2.x branch (SVN), and posted the code to Github:
Do not get too excited just yet though - the code I've written so far is in the very early stages of development and really is just a demonstration of the potential to use Cython to create a wrapper for OpenJPEG. The only thing that the module does at the moment is read in a single JP2 image and convert it to a NumPy ndarray:
In [1]: import openjpeg
In [2]: decoder = openjpeg.Decoder()
In [3]: decoder.decode(openjpeg.EIT_IMAGE)
Out[3]:
array([[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
...,
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]], dtype=uint8)
Some of the next things I want to work on are alternative outputs, sub-region support, XML box retrieval and encoding.
I still haven't settled on an API either, so the above syntax might change in the future.
If anyone is interested in helping, let me know! Feedback is also welcome :)
Cheers,
Keith
On Tuesday, May 29, 2012 9:48:27 AM UTC-4, mathieu wrote:
On Wed, May 9, 2012 at 4:31 PM, Keith Hughittwrote: