How can I calculate the distance between the center pixel and the 8 neighborhood pixels?

前端 未结 0 423
南旧
南旧 2020-12-15 03:55

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,         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题