Skip to content

Improving visual quality for lossy coding #240

@palemieux

Description

@palemieux

The only parameter available to ojph_compress to control lossy quality is -qstep, which AFAIK automatically generates quantization step sizes in each sub-band and optimizes PSNR. The latter results in very noticeable visual artifacts at lower qualities.

For example, the leftmost tile was encoded at with -qstep 0.025. For comparison, the center tile was encoded using KDU with -rate 0.4 Ctype=Y and the rightmost tile with Qfactor=86. Note that Qfactor removes some but not all the high-frequency artifacts. All encoded images were around 466 kB.

Image

Ideally, OpenJPH would ultimately include visual weighting options at encoding. In the meantime, it might make sense to note limitations at low quality/bit rates.

Source image (thanks @hmaarrfk):

rev.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions