I want to calculate the color difference between the center pixel and the other 8 neighborhood pixels. For example my pixel matrix is:
[[ 1, 2, 3], [4, 5,