Unclear how to reproduce Ponomarenko curves #40

Open
opened 2024-04-06 17:15:30 +02:00 by Benjamin_Loison · 0 comments
from ponomarenko import estimate_noise
from PIL import Image
import numpy as np

imagePath = '0raw.jpeg'
imagePil = Image.open(imagePath).getchannel('G')
imagePil.show()
imageNpArray = np.array(imagePil)

bins, noise_std = estimate_noise(imageNpArray)
print(bins)
print(noise_std)
array([17.039062, 29.      , 46.25    ], dtype=float32)
array([0.05639337, 0.11434583, 0.23447046], dtype=float32)

0raw

mos

Related to #36.

```py from ponomarenko import estimate_noise from PIL import Image import numpy as np imagePath = '0raw.jpeg' imagePil = Image.open(imagePath).getchannel('G') imagePil.show() imageNpArray = np.array(imagePil) bins, noise_std = estimate_noise(imageNpArray) print(bins) print(noise_std) ``` ``` array([17.039062, 29. , 46.25 ], dtype=float32) array([0.05639337, 0.11434583, 0.23447046], dtype=float32) ``` ![0raw](/attachments/8dbd221e-9fb6-4ea9-bd09-1b34a62871ec) ![mos](/attachments/53e59664-f68a-4190-87c1-37c3dafa2cf3) Related to #36.
Benjamin_Loison added the
medium priority
quick
labels 2024-04-06 17:20:07 +02:00
Sign in to join this conversation.
No description provided.