I have an 450x450 gray image. The neighbourhood of each pixel to be processed is defined by the Euclidean distance based on two radii, R1 and R2. Hence:
- All pixels in the neighbourhood of R1 and R2 should be summed respectively.
- Each pixel mapped to R1 and R2 should be counted each pass.
- New Image should be ratio of these two regions: sum of pixels mapped to R1*Counter2 / sum of pixels mapped to R2*Counter1.
How can I do this in MATLAB?