I have an image
After taking the log of one plus the magnitude of the transform of the this image to observe the bright spots due to the stripes. I got this
TO make it easier I used the thermal version of the image and got this
What I have to do is :-
a. Design a “notch” filter to remove a small area around the fundamental frequency and the first few harmonics.(or in other words is to remove the 'dark red strips on the coke bottle'). To remove the white spots.
b. Notch filter must be symmetric about the origin of the frequency plane.
I thought of removing the values of these pixels above a particular threshold but it is not giving me exactly what I wanted.
So this is the code I have
NF = ones(ir,ic);
NF(21:27,45:63) = 0;
NF(256-27:256-21,256-63:257-45) = 0;
NF(47:53,63:81) = 0;
NF(256-53:256-47,256-81:257-63) = 0;
NF(73:79,81:99) = 0;
NF(256-79:256-73,256-99:257-81) = 0;
NF(99:105,99:117) = 0;
NF(256-105:256-99,256-117:256-99) = 0;
G = F.*NF;
but this is giving me an error
Error using .* Matrix dimensions must agree.
Error in Notchfilter (line 59) G = F.*NF; % Apply the notch filters to the Fourier spectrum of the image
Any help please?