Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/malaterre/saj

Simple API for JPEG 2000
https://github.com/malaterre/saj

Last synced: 6 days ago
JSON representation

Simple API for JPEG 2000

Awesome Lists containing this project

README

        

This is the temporary location of the Simple API for JPEG 2000 project

The aim of this project is to provide an API for application programmer to
quickly retrieve meta information about a JP2 file or a J2K codestream.

In the longer term this project will be merged into OpenJPEG project itself.

It only compiles on GNU/Linux so far. Once merged into OpenJPEG it will
automagically be made portable

Compilation:

$ cmake .
$ make

How to use:

$ ./jpegdump input.j2k > ref1

Compare with our own

$ ./d3tdump input.j2k > ref2

$ vimdiff ref1 ref2

If you have access to PIRL java package:

$ wget ftp://pirlftp.lpl.arizona.edu/pub/Java/PIRL.jar

for jp2 file, use:

$ java -classpath PIRL.jar PIRL.Image_Tools.JP2_Info input.jp2 > ref1

or (for J2K):

$ java -classpath PIRL.jar PIRL.Image_Tools.JPEG2000_Codestream_Info input.j2k > ref1

now compare:

$ ./pirldump input.j2k > ref2

$ vimdiff ref1 ref2

You can also download the original conformance files:

http://sourceforge.net/projects/jpeg/files/jpeg2000_images/jpeg2000_images/j2kp4files_v1_5.zip

And then use:

$ ./avdump J2KP4files/testfiles_jp2/file8.jp2 > out

now compare:

$ vimdiff out J2KP4files/descriptions_jp2/file8.desc

it works with J2K too:

$ ./avdump J2KP4files/codestreams_profile0/p0_14.j2k > out

now compare:

$ vimdiff out J2KP4files/descriptions_profile0/p0_14syntax.txt

-- Mathieu Malaterre