Check if the array is writable with
>>> img.flags
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : True
WRITEABLE : False
ALIGNED : True
UPDATEIFCOPY : False
If WRITEABLEis false, change it with
img.setflags(write=1)
Check if the array is writable with
>>> img.flags
C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : True
WRITEABLE : False
ALIGNED : True
UPDATEIFCOPY : False
If WRITEABLEis false, change it with
img.setflags(write=1)