필터 지우기
필터 지우기

Plotting a graph of PSNR vs bit rate for an image,after enhancement?

조회 수: 6 (최근 30일)
researcher
researcher 2015년 4월 16일
댓글: Eduardo 2015년 5월 16일
Hi,I want to plot a graph between the PSNR and the bit rate.I have got MSE and PSNR values after enhancing an image.How can I get the bit rate(kbps) to represent the data graphically?
  댓글 수: 1
Eduardo
Eduardo 2015년 5월 16일
Hi, I had the same doubt but I managed to solved in this way:
- You have a picture, you can represent it like a matrix with imread.
- Weight * Height * Frame/second = Pixel/second
- Bits Per Pixel (BPP) = BitRate/(Pixel/Second).
That means, you can play with the value of BPP to obtain different's bitrates. Remember, in a image (and not in a video) you will only see a frame per second, son the time will be 1.
-------------------- But I did it in this way, i just play with the values of the compression ratio to obtain differents values of PSNR:
imwrite(iframe,'iframe.jp2','CompressionRatio',i,'mode','lossy');
When 'i' is the value that you put. I did a for i=1:100 and I obtained different values of PSNR. Remember for a higher Compression Ratio, lower PSNR you will obtained.
I hope this can be useful to you!

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2015년 5월 16일
Have you tried plot()?
plot(bitRate, PSNR, 'b-', 'LineWidth', 3);
grid on;

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by