



import math
import os

import cva
import numpy as np

__A				    =						255.0



def        __a     (    lowerCAmelCase_   :					float			,lowerCAmelCase_   :					float				)      -> Dict:






						'''simple docstring'''



						UpperCAmelCase_=   np.mean((original - contrast) ** 2				)
						if mse == 0:
												return 1_00

						return 20 * math.logaa(PIXEL_MAX / math.sqrt(_UpperCAmelCase				)				)



def        __a     (    )      -> Dict:






						'''simple docstring'''



						UpperCAmelCase_=   os.path.dirname(os.path.realpath(_UpperCAmelCase				)				)
						# Loading images (original image and compressed image)
						UpperCAmelCase_=   cva.imread(os.path.join(_UpperCAmelCase			,"""image_data/original_image.png"""				)				)
						UpperCAmelCase_=   cva.imread(os.path.join(_UpperCAmelCase			,"""image_data/compressed_image.png"""				)			,1				)

						UpperCAmelCase_=   cva.imread(os.path.join(_UpperCAmelCase			,"""image_data/PSNR-example-base.png"""				)				)
						UpperCAmelCase_=   cva.imread(
						    os.path.join(_UpperCAmelCase			,"""image_data/PSNR-example-comp-10.jpg"""				)			,1				)

						# Value expected: 29.73dB
						print("""-- First Test --"""				)
						print(F"""PSNR value is {peak_signal_to_noise_ratio(_UpperCAmelCase			,_UpperCAmelCase				)} dB"""				)

						# # Value expected: 31.53dB (Wikipedia Example)
						print("""\n-- Second Test --"""				)
						print(F"""PSNR value is {peak_signal_to_noise_ratio(_UpperCAmelCase			,_UpperCAmelCase				)} dB"""				)


if __name__ == "__main__":
	main()











"""simple docstring"""
__UpperCamelCase			:		Tuple		    =   10**8

def 						_SCREAMING_SNAKE_CASE       (_UpperCAmelCase :  int       ):
 if n % 10 == 0:
  return False
 lowerCAmelCase  							=      str(_UpperCAmelCase       )
 return s == s[::-1]

def 						_SCREAMING_SNAKE_CASE       ():
 lowerCAmelCase  							=      set()
 lowerCAmelCase  							=      1
 lowerCAmelCase  							=      5
 while sum_squares < LIMIT:
  lowerCAmelCase  							=      first_square + 1
  while sum_squares < LIMIT:
   if is_palindrome(_UpperCAmelCase       ):
    answer.add(_UpperCAmelCase       )
   last_square += 1
   sum_squares += last_square**2
  first_square += 1
  lowerCAmelCase  							=      first_square**2 + (first_square + 1) ** 2

 return sum(_UpperCAmelCase       )


if __name__ == "__main__":
       print(solution())





