![]() This function requires values of attribute x and y that is numerical array reference. This function calculates and returns MSE of single component signal. You must set value of this attribute at constructor. yĪnother signal for calculate PSNR or MSE. Please specify value of this attribute as numerical array reference or hash reference. Default accessor to this attribute is provided. One side of signal for calculate PSNR and MSE. You do not have to set value of this attribute at constructor. If bpp is not specified, it will be set 8 (bit). Please specify value of this attribute as integer. It sets 2^(bpp) - 1 to maximum power ("maximum power" means maximum allowable value of signal). INTERFACES Math::PSNR->new( bpp => $bpp, x => $x, y => $y )Ĭreates an instance. More examples are in my GitHub repository. monochrome image) and three components signals (e.g. This module can deal with single component signals (e.g. ![]() They are commonly used to evaluate quality of images. PSNR and MSE are the index of measuring quality between different signals. This module calculates PSNR (Peak Signal-to-Noise Ration) and MSE (Mean Square Error). # Calculate PSNR of three components signal (e.g. # Calculate MSE of three components signal (e.g.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |