1
votes

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.enter image description here

1
Does my answer to this question help? It's a matlab related question but the explanation should stand on its own.jodag
Posting an image might help.Mark Setchell
@MarkSetchell please see the image and guide me how can I remove the repetitive Line structure from image?Gujjar Ad

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:

enter image description here

and mask out all the off-centre highlights with a different colour, like this:

enter image description here

and difference that with the original spectrum so you get a mask of your edits like this:

enter image description here

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!

enter image description here