Visualizer for the Building Detector challenge, 2nd round

The purpose of the visualizer application is to let you view grayscale, 3-band and 8-band images, view ground truth building footprints and your solution's building footprint as overlays on these images, compare truth to solution and calculate your solution's score.
Download the visualizer package and unpack it anywhere on your system. Open a command window in the directory where you unzipped the package and execute
java -jar visualizer.jar 
     -truth <truth_file_list> 
     -solution <solution_file> 
     -image-dir <image_directory_list>
     -band-triplets <band_definition_file>
(The above is a single line command, line breaks are only for readability.)

This assumes that you have Java (at least v1.7) installed and it is available on your path. The meaning of the above parameters are the following: Note that if you use multiple path elements separated by a semicolon in the -truth or -image-dir parameters then it may be necessary to enclose the parameter value in quotes.
All file and directory parameters can be relative or absolute paths. The -truth and -solution parameters are optional, the tool is able to run without them.

An alternative way of specifying the parameters is via a parameters file, see params.txt for an example. The file contains the description of the required syntax. In this case the command should have exactly two parameters:
java -jar visualizer.jar -params <params_file>
where <params_file> is an absolute or relative path to a parameters file. For example a command line that will run the app using the spacenet sample data:
java -jar visualizer.jar -params params.txt
This assumes that you have already downloaded the sample data from the spacenet-dataset AWS bucket (see the problem statement for details) and extracted it, so the directory structure is something like this:
data/
    AOI_2_Vegas_Train/
        geojson/
        MUL/
        ...
    AOI_3_Paris_Train/
        ...
    AOI_4_Shanghai_Train/
        ...
    AOI_5_Khartoum_Train/
        ...
    solution-sample.csv
    band-triplets.txt
visualizer_lib/
    *.jar  
visualizer.jar
params.txt
Modify the params.txt file if your paths look different.

There are some other optional command line parameters you can use (either directly in the command line or in the parameters file): All these have proper defaults so you can leave them out.

Operations

Usage of the tool should be straightforward. Select the view type from the top drop down list: 'PAN grayscale', 'RGB Pan-sharpened' or one of the predefined band triplet combinations (these are generated from the contents of the MUL folder). Select the image to be displayed from the bottom drop down list. Note that you can also switch to another image by clicking the line containing an image name in the output log window.
If both truth and solution files are specified then solution and truth are compared automatically, scores are displayed in the log window and also in the command line.
You can zoom in/out within the image view by the mouse wheel, and pan the view by dragging.

Colour scaling

The dataset contains 16-bit grayscale and 48-bit colour images which the tool converts to 8-bit or 24-bit images so that they can be displayed. A rather simple algorithm is used for colour conversion, see the loadMap() method of the Visualizer class. Note that for machine learning you may do this step differently or may not do this step at all.

Licenses

The visualizer tool uses the imageio-ext library for reading multiband TIFF files. The imageio-ext library is LGPL licensed, see here for its license text. See here for details on the library.