Search code examples
algorithmimage-processingencodevideo-processingbitrate

How to plot the PSNR behavior with respect to the bit-rate for different quality factors and block sizes?


I am learning video processing and I have successfully implemented a video encoder based on JPEG algorithm (for spartial redundancy) and block matching algorithm (for temporal redundancy).

Now I am asked to discuss the PSNR behavior with respect to the bit-rate for different quality factors and block sizes.(Provide a graph)

The question made me so confused about what would be included in the graph and how to display such properties on a graph.

Can anyone give me some ideas?

Please forgive me if my English is poor.

Thank you very much!


Solution

  • The PSNR as a function of the bitrate is generally a concave function.

    When you encode a video with your encoder, you get a PSNR value and a bitrate value. To get a curve, you need to vary your "quality factor", generally this can be the quantization parameter (QP).

    Now you get multiple pairs (PSNR, bitrate), which allows you to plot the curves.

    If you have to plot for different block sizes, you will need different curves.

    Example below: enter image description here