come devo confrontare più di 2 array di numpy?Confronto di più array di numpy
import numpy
a = numpy.zeros((512,512,3),dtype=numpy.uint8)
b = numpy.zeros((512,512,3),dtype=numpy.uint8)
c = numpy.zeros((512,512,3),dtype=numpy.uint8)
if (a==b==c).all():
pass
questo invia un ValueError, e io non sono interessato a confrontare le matrici due alla volta.
"e non mi interessa comparare gli array due alla volta" - beh, è l'opzione migliore che hai. – user2357112
@ user2357112 che non sarebbe facile se ci sono molti array –