gmelodie / silentMoire

Moiré pattern denoiser for screen pictures
MIT License
46 stars 14 forks source link

larger patterns unable to be removed #22

Open sleepingcat4 opened 5 months ago

sleepingcat4 commented 5 months ago

I have an image which has huge moire patterns. And i tried your code and it resulted in an error for the second approach and for the first one, it was unable to remove the patterns effectively. Can you help with this? : ) I tried everything I could learn and apply but these patterns are really stubborn. Appreciate your kind help.

error:

UnboundLocalError                         Traceback (most recent call last)
[<ipython-input-19-71d949942d6b>](https://localhost:8080/#) in <cell line: 1>()
----> 1 noisy_diag_filter = _low_pass_filter(501, noisy.shape, show_imgs=True)

[<ipython-input-18-9da2c26a3af9>](https://localhost:8080/#) in _low_pass_filter(radius, final_shape, show_imgs)
     31                      (final_shape[1] - filt.shape[1])//2+1)
     32 
---> 33     pad_shape = (pad_rows, pad_cols)
     34 
     35     # Apply padding

UnboundLocalError: local variable 'pad_rows' referenced before assignment

Image img_t1_z1_c1_small_800