Skip to content

Instantly share code, notes, and snippets.

@vane90
Created May 29, 2013 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vane90/5670432 to your computer and use it in GitHub Desktop.
Save vane90/5670432 to your computer and use it in GitHub Desktop.
for i in range(ancho):
for j in range(alto):
if array[i,j]<0:
val = 0
elif array[i,j]>255:
val= 255
else:
val=int(array[i,j])
imagen[i,j]=(val,val,val)
im.save('coef'+str(cs)+'.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment