Hello everyone, I am trying this concept that the code goes through each pixel of an image and sum all the pixel values(to take a mean value then) in a specific distance (2lambda where lambda = 4) from that pixel. this should be done for all the pixels .
Thank you everyone for your response. let me explain it abit.
img_out(:,:,n) = conv2(img_in, gb,'same');
img_out is the one i want to work with now. i am gonna write some comments about what i want to achieve now.
% calculate the number of pixels in distance limit of 2 lambda to 12 lambbda(lammba is the wavelength of gabor filter but for simplicity here just consider it 4)
% to explain the above comment a bit more i have to start from pixel 1 and will go through all the pixels till the end.
e-g for pixel 1, pixel 1 will be the target pixel and we will have to sum all the pixel values of the neighbouring pixels in the distance of 2lambda to 12 lambda.