MATLAB: Find min and max Intensity pixels within 3×3 neighberhood for a 2D image.

image processing

Hi guys. I need to find min and max Intensity pixels, their intensity values and distance between min and max pixels within a neighborhood of 3×3 for each pixel in an image. I will make some mathematical manipulations based on these parameters and assign new intensity value to a center pixel. Your help will be much appreciated.

Best Answer

Sounds like you need rangefilt.