Created
May 29, 2013 14:18
-
-
Save AdriC1705/5670605 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def coeficientes(matrix):#Obtener los coefficientes 2D | |
coeffs=pywt.dwt2(matrix,'haar') | |
cA,(cH,cV,cD)=coeffs#cA=approximacion,cH=Detalle horizontal,cV=Detalle vertical,cD=Detalle diagonal | |
return (cA,cH,cV,cD),coeffs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment