j2k_to_image(1) - convert a J2K, JP2 or JPT file into a PGM, PPM, PNM, PGX or BMP file
-ImgDir sourcedir
    Directory of J2K, JP2 or JPT files to convert
-OutFor extension
    PGM, PPM, PNM, PGX or BMP output file format
-i source
    J2K, JP2 or JPT file to convert
-o destination
    PGM, PPM, PNM, PGX or BMP file to output to
-h  Display help information
-r reduction
    Number of highest resolution levels to be discarded. Output resolution is effectively divided by
    2^reduction
-l layers
    Maximum count of quality layers to decode