openjpeg/README.flviewer.md

2.2 KiB

If you want to use 'flviewer' for LINUX, APPLE, MS-WINDOWS:

  1. Download the FLTK library from

    http://www.fltk.org

    e.g. fltk-1.3.x-r10773.tar.bz2 and expand it.

  2. (for the present) MANUALLY uncomment in

    fltk-1.3.x-r10714/FL/Enumerations.H

    the line

//#define FL_ABI_VERSION 10304

If you do not 

#define FL_ABI_VERSION 10304

the horizontal BAR is not activated.
  1. Compile the FLTK library.

  2. Call 'test/tree' to check whether the HBAR works.

  3. Install the FLTK library.

  4. For FLVIEWER, CMAKE arguments for the OPENJPEG library may be:

    -DBUILD_SHARED_LIBS:bool=on -DBUILD_FLVIEWER:bool=on -DBUILD_FLVIEWER_WITH_SHARED_LIBS:bool=on -DFLTK_SKIP_OPENGL:bool=on -DBUILD_WITH_GERMAN:bool=off

  5. Compile the OPENJPEG library.

  6. Call 'bin/flviewer --version'.

  7. Call 'bin/flviewer' to test the application.

  8. Some files with a large number of SOP markers, e.g.

    'openjpeg-data/input/conformance/p0_07.j2k'

    with 256 tiles, may need some time. On my computer about 2 minutes. The SOP markers are therefore ON only on demand (read_jpeg2000.cxx).

  9. The FLVIEWER menu has some buttons, inputs and outputs:

    Tracks, Frames, Threads : for MJ2 Stop, Go on, Restart, Close, <-Step, Step-> : for MJ2 Tile, Reduction and Area : for JP2/J2K, JPM, JPX Section and Browse : for all file types Layer and Component : for resp. files

    To use 'Section': Push the left mouse button and draw a rectangle Press 'Section' To remove the rectangle, click into the main window In the section window use mouse button 3 to select an action. Only one section window can be open. If you handle an animation of type MJ2 you must first press the 'Stop' button to stop the movie before you can get a section.

  10. Install the OPENJPEG library together with FLVIEWER.

  11. JPM and JPX files can be found on:

    http://home.arcor.de

    or (possibly) on

    https://share.openanalytics.eu/data/public/76cb6a.php https://share.openanalytics.eu/data/public/1e7708.php