Can any one mail me the code for plotting psnr versus bpp?

4 次查看(过去 30 天)
how to plot psnr (peal signal to noise ratio ) versus bpp(bits per pixels)

回答(2 个)

Image Analyst
Image Analyst 2014-5-4
Assuming you've varied by bpp and gotten different psnr's for the different bpp
plot(bpp, thePsnr, 'bo-');
bpp and thePsnr are arrays that you've built up by trying different bpp.
Don't use psnr as a variable name because it's the name of a built in function in the Image Processing Toolbox.
  10 个评论
Walter Roberson
Walter Roberson 2021-1-30
A pixel is a unit with however much memory is required to store all of the color information. In cases of compression or mosaicing then bits per pixel may be non-integer, the mean (average) number required as it is not required that exactly the same amount of memory is used for each pixel.
Mohana Singh
Mohana Singh 2021-1-30
Thank you! I somehow got majorly confused, thanks a lot for clearing it up.

请先登录,再进行评论。


Spandan Tiwari
Spandan Tiwari 2016-6-24
There's also a function called psnr() in Image Processing Toolbox, that you can use.

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by