Actually I want to apply notch filter to remove specific pattern in image just like (line ,circle ,etc..) . I want to remove some specific frequency of line or circle using notch filter or any other way of removing. Can some one guide me how can I remove specific repetitive pattern from image just like circle or line. if you give some example code it help me a lot. because currently I can not understand how I apply filter or notch to remove certain repetitive pattern form Image. Waiting to hear from you soon.
1
votes
1 Answers
2
votes
Spectral Analysis is not "my thing", but the steps are as follows.
Take your original image and perform FFT to generate:
- phase image
- magnitude image
- spectrum (on a log scale)
You seem to have that already. Now take the spectrum image:
and mask out all the off-centre highlights with a different colour, like this:
and difference that with the original spectrum so you get a mask of your edits like this:
Multiply that newest mask with the original magnitude, combine with the original phase and do the inverse FFT. I got this as a result of my sloppy editing and abilities!