Restore what should work

This commit is contained in:
2024-05-23 02:33:20 +02:00
parent 81a994ed65
commit fbdb2393a9

View File

@@ -52,13 +52,14 @@ def removePeriodicPatterns(fft1Part):
realFixedImage = removePeriodicPatterns(np.real(fft1).copy())
imaginaryFixedImage = removePeriodicPatterns(np.imag(fft1).copy())
fixedImage = realFixedImage + 1j * imaginaryFixedImage
fixedImage = imaginaryFixedImage
#plt.imsave('second_image.png', np.log10(1 + abs(fixedImage)))
fixedImage = removePeriodicPatterns(abs(fft1))
figure, axes = plt.subplots(1, 2, sharex = True, sharey = True)
plt.suptitle('Attenuating FFT significant lines')
axes[0].set_title('Original FFT')
firstImage = np.log10(1 + abs(np.real(originalFft1)))
firstImage = np.log10(1 + abs(originalFft1))
secondImage = np.log10(1 + abs(fixedImage))
images = [firstImage, secondImage]
vMin = np.min(images)