Add a missing : and imports

This commit is contained in:
Benjamin Loison 2024-05-16 00:33:29 +02:00
parent f719ff767a
commit eb33def18c
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8
3 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,7 @@
from PIL import Image
import numpy as np
from scipy import fftpack
import matplotlib.pyplot as plt
fft = np.array(Image.open('fft.png').convert('L'))# / 255
print(fft)

View File

@ -1,6 +1,7 @@
from PIL import Image
import numpy as np
from scipy import fftpack
import matplotlib.pyplot as plt
image = np.array(Image.open('image_4.png').convert('L'))# / 255
print(image)
@ -13,10 +14,6 @@ height, width = fft1.shape
for x in range(width):
fft1[height // 2, x] = np.median(fft1[:, x])
# save the image
# np.log10
plt.imshow(np.log10(abs(fft1)))

View File

@ -33,7 +33,7 @@ class Denoiser(Enum):
def __str__(self):
return self.name.lower()
class Distance(Enum)
class Distance(Enum):
ROOT_MEAN_SQUARE = auto()
PEARSON_CORRELATION = auto()