first version, tested on openjpeg2.0 with openjdk1.7
-
cd /your/path/to/openjpeg2.0
-
sudo apt get install cmake make
-
cmake .
-
make
-
sudo make install
-
sudo ldconfig (alternatively set LD_LIBRARY_PATH to location of libopenjp2.so)
(prerequisites: make and maven2+)
-
cd /your/path/to/jp2view
-
export OPJ_INC=/your/includepath/openjpeg2.0 (i.e.: /usr/local/include/openjpeg-2.0/)
-
export JAVA_HOME=/your/jdkpath (i.e.: /usr/lib/jvm/java-1.7.0-openjdk-amd64)
-
make
-
cd target
-
java -jar jp2-0.1.0-jar-with-dependencies.jar nl.kb.JP2Reader ../res/balloon.jp2 4
If all went well, there are now 5 jpeg files in your target directory:
- test.jpg file (full res balloon)
- test_region.jpg
- test_region_scaled_up.jpg
- test_region_scaled_down.jpg
- test_full_scaled.jpg