Would this be the correct method of finding the position of a pixel underneath another pixel?

前端 未结 0 346
悲哀的现实
悲哀的现实 2021-02-02 13:45

def detect_edges (image: Image, threshold: float) -> Image:

new_image = copy(image)

for x,y, (r,g,b) in image:
    
    brightness = (r+g+b)/3
    
    if abs         


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