Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def prob2(img1,img2):
- # @param img1: picture
- # @param img2: picture
- # @return bool
- x= 0
- y= 0
- c= getPixel(img1,x,y)
- for p2 in getPixels(img2):
- Red1= getRed(c)
- Green1= getGreen(c)
- Blue1= getBlue(c)
- Red2= getRed(p2)
- Green2= getGreen(p2)
- Blue2= getBlue(p2)
- if Red1+Blue1+Green1 == Red2+Green2+Blue2 :
- x= x+1
- y= y+1
- return True
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement