MATLAB: Euclidean distance for all pixels

euclidean distance

i wanted to find the minimum of Euclidean distance, between pixels of an image?? please can someone help me with the code??

Best Answer

That would be 1, and occurs for any pixels that are adjacent to each other.