Skip to content

Commit e048d01

Browse files
CaedenPHcclauss
andauthored
Update compression/peak_signal_to_noise_ratio.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 93f75d1 commit e048d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compression/peak_signal_to_noise_ratio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PIXEL_MAX = 255.0
1515

1616

17-
def psnr(original: float, contrast: float) -> float:
17+
def peak_signal_to_noise_ratio(original: float, contrast: float) -> float:
1818
mse = np.mean((original - contrast) ** 2)
1919
if mse == 0:
2020
return 100

0 commit comments

Comments
 (0)