jbig2enc-minidjvu

December 13, 2024 ยท View on GitHub

Using jbig2enc in conjunction with minidjvu/minidjvu-mod.

The jbig2enc implementation uses the leptonica classifier for lossy compression, which is unsatisfactory of:

Kjbig2 = Kpack / (1.0 - Kerror)

         Kpack = size_jbig2 / size_pbm
         
         Kerror = sqrt(1.0 - part_no_error * part_no_error)
         
                  part_no_error = (full - error) / full

To overcome poor compression performance and classification errors, a recipe will be shown for using the third-party minidjvu-mod classifier with increasing the threshold of the leptonica classifier to eliminate classification errors.

Recipe for using the third-party classifier minidjvu-mod with increasing the leptonica threshold to eliminate classification errors

Test used this recipe.