Skip to content

Instantly share code, notes, and snippets.

@AdriC1705
Created May 29, 2013 14:24
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 AdriC1705/5670652 to your computer and use it in GitHub Desktop.
Save AdriC1705/5670652 to your computer and use it in GitHub Desktop.
def inversa(coeffis,escala):
inv = pywt.idwt2(coefficientes,'haar')
pixeles = escala.load()
ancho,alto = escala.size
for i in range(ancho):
for j in range(alto):
nuevo = int (inv[i,j])
pixeles[i,j] = (nuevo,nuevo,nuevo)
return escala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment