System requirements
| System Requirements |
| Java Runtime Environment (JRE) 5.0 (required) |
| JAI extension (Java Advanced Imaging) (required)
|
| JavaView © (Included) |
Quick installation
Installation of the Java Runtime Environment (JRE)
If you haven't installed a Java Runtime Environment (JRE) 5.0 (or higher)
yet like J2SE 1.5.0 (or higher), just go to http://java.sun.com/ > Downloads > J2SE
1.5.0, or http://java.com/en/download/manual.jsp.
To test wether you have a suitable JVM installed type in your console
(command prompt):
>> java -version
you will get something like:
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode,
sharing)
The version number (bold faced) should be 1.5 or greater.
Windows installation
Double click the downloaded binary file and follow the installation
instructions.
Linux installation
Install the binary file in e.g. /usr/java/. Note: Be sure you have write
access. Make the binary executable by chmod a+x jre%.bin.
Replace the links in the binary directory to the latest installation
$ sudo ln -s /usr/java/jre1.5.0_01/bin/java /usr/bin/java
$ sudo ln -s /usr/java/jre1.5.0_01/bin/java_vm /usr/bin/java_vm
$ sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup
$ sudo gedit /etc/bash.bashrc
If you already have Java Advanced Imaging (JAI) installed move to the
next step, else download it at e.g. http://java.sun.com/ > Downloads >
Java Advanced Imaging (JAI), or from
http://java.sun.com/products/java-media/jai/.
Java Advanced Imaging (JAI) installation
Windows Installation
Double click the downloaded binary file and follow the installation
instructions.
Linux installation
Copy the binary file in the jre1.5 directory.
Change its permission to be executable (chmod a+x jai%).
Execute.
Installation of the Normal Offset Compression
Program
The final step is just to extract on of the downloaded zip-files
corresponding to your platform.
Usage
Commandline based
The commandline based usage is more powerful than using the gui. Lots of
options can be given. The program is research software that implements a
nonlinear transform coder together with some basic compression algorithms as
described in papers [1],[2].
Usage
Using a command prompt (shell) type: >> java
-cp nodic.jar commandline.Encoder.NormalMeshEncoder [args]
For large inputs you have to enlarge the default java heapspace, i.e.:
>> java -Xms256m -Xmx812m
-cp nodic.jar commandline.Encoder.NormalMeshEncoder [args]
Where [args] are:
-i <path> -o <dir> -n <string> -IT <int>
-stop <float|int> [-p <float>] [-Con <int> -Wnr
<int> -Wnt <int>] [-compressiontype <Generic|
Huffman>] [-maxr <int>]
-i path: filepath for the image to compress
-o path: directory path for the output image
-n name of the output file[without extension]
-IT MeshIteratorTYPE:
UNTIL_ERROR_REACHED:= 0
UNTIL_NUMBER_OF_TRIANGLES_REACHED:= 1
UNTIL_NUMBER_OF_EDGES_REACHED:= 2
UNTIL_CERTAIN_MINIMAL_PSNR_REACHED:= 3
-stop float to stop meaning depending on the value of -IT
OPTIONAL:
-p pruning and value for lagrangian (typically 0..100)
-Con ConnectionCriterium:
DEFAULT_CONNECTION_CRITERIUM:= 0
IMAGE_DEPENDENT_CONNECTION_CRITERIUM:= 1
CONVEX_CONNECTION_CRITERIUM:= 2
-Wnr WichNormToUseFoRRefinement: [0,1,2] [infty,L_1,L_2]
-Wnt WichNormToUseFoRTesselation: [0,1,2] [infty,L_1,L_2]
-compressiontype Generic, Huffman
-maxr maximal slope of the normal
------Basemesh properties------
-mb if present, makes basemesh
-perc [0,1] percentage of vertices to keep in basemesh
-k [int] innerpixel distance for raster
-L [int]
-N [int]
-D DEGREE [int] greatest angle in basemesh
------Basemesh properties------
-vtk true
For decoding use
>> java
-cp nodic.jar commandline.Decoder.NormalMeshDecoder [args]
Gui
based
The gui's sole purpose is to view the compressed image, or its mesh
representation returned by the underlying algorithm. The user can interact on
a graphical manner to set the preferences instead of using the built in
command line tool of the Kernel package.
Usage
Double click on the executable nodic.jar/nodic.bat/nodic.sh to
run the program.
Or type >> java -jar nodic.jar in your prompt or shell.
Opening an image
File > Open > ...
Compressing the Image
Press the Start button
Bibliography
[1] W. Van Aerschot,M. Jansen, A. Bultheel, Normal Offsets for Digital
Image Compression, TW446
[2] W. Van Aerschot, M. Jansen, E. Vanraes, and A. Bultheel. Image
compression using normal mesh techniques, Curves and Surfaces, 2006