How to use masking filter to remove particular frequency from an image?

조회 수: 4 (최근 30일)
waqas
waqas 2018년 10월 21일
댓글: waqas 2018년 10월 21일
I have modified the code of ImageAnalyst for one the tasks that I am currently working on. Goal is to extract the QR code from the image. Previously I extracted the QR code by using a notch filter but it is highly sensitive to distortion and doesnt work as soon as image is no more in-plane.
Attached is the code based on masked filter (originally written by Image Analyst) and the image I am working on. But once I have removed the frequencies, it it gives me a noisy output like salt and pepper noise.
Looking forward to constructive feedback on the query.
  댓글 수: 4
Guillaume
Guillaume 2018년 10월 21일
Isn't the QR code encoded by the connections between the dots? If so, why do you care about removing some frequencies from the image?
waqas
waqas 2018년 10월 21일
No QR code is simply added as a layer on the pattern so the noise right now goes beyond the set noise correction factor of 25% in QR code which makes it unreadable. Idea about removing the bright spikes in the frequency domain is to treat these white and black dots as periodic noise and then get rid of them.
Previous discussion on the similar topic with Image Analyst is in the following link: (he did not reply there so I started new thread here)
https://se.mathworks.com/matlabcentral/answers/418501-how-to-find-specific-frequency-from-image
Ideally when we adjust the contrast in imtool then we should be able to read the QR code.

댓글을 달려면 로그인하십시오.

답변 (0개)

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by