
    !Цi              
          S r SSKrSSKr SSKJr  \" 5       rSr\(       a  \
" S5      eSr/ S	QrS
r\" \ V s/ s H  n \R                  U 5      PM     sn / 5      r\R"                  R%                  S5      r\R)                  5          0 r\ GH  r\R.                  " \5      r\R3                  S\5        \S:X  a  \" \" \R8                  S5      5      / SQ-   rO\R8                  \R8                  S-   4r\ GH,  r\R?                  \5      r \R3                  S\ 5        \ GH  u  r!r"\RF                  " \\RH                  " / SQ5      :H  SS9(       a>  \R3                  S\RJ                  5        \R3                  S\RL                  5        S\"-  r'OS\" S3r'\RQ                  \'5      r)\)S   (       d  \*" S5      e\RV                  " \RY                  S5      5      r-\RV                  " \RY                  S5      5      r.SR_                  \"\\0" \5      S/5      r1SR_                  \"\\0" \5      S/5      r2\-\\1'   \.\\2'   \R3                  S\RJ                  5        \R3                  S\RL                  5        S\" S3r'\RQ                  \'5      r)\)S   (       d  \*" S5      e\RV                  " \RY                  S5      5      r-\RV                  " \RY                  S5      5      r.SR_                  \"\\0" \5      S/5      r1SR_                  \"\\0" \5      S /5      r2\-\\1'   \.\\2'   GM     GM/     GM     \Rg                  5         \Rh                  " S!0 \D6  g! \ a    \	" S5        Sr GNFf = fs  sn f ! \Rg                  5         f = f)"zhThis script was used to generate dwt_matlabR2012a_result.npz by storing
the outputs from Matlab R2012a.     N)MatlabFzTo run Matlab compatibility tests you need to have MathWorks MATLAB, MathWorks Wavelet Toolbox and the pymatbridge Python package installed.Tz/Can't generate matlab data files without MATLABreduced)	)zerozpd)constantsp0)	symmetricsym)reflectsymw)periodicppd)smoothsp1)periodizationper)antisymmetricasym)antireflectasymw)dbr
   coifbiorrbioi  waveletfull(   )d      i  i  iP     data)coif6coif7coif8coif9coif10coif11coif12coif13coif14coif15coif16coif17)axisLo_DHi_Dz/[ma, md] = dwt(data, Lo_D, Hi_D, 'mode', '%s');z'[ma, md] = dwt(data, wavelet, 'mode', 'z');successzXMatlab failed to execute the provided code. Check that the wavelet toolbox is installed.mamd_z*[ma, md] = dwt(data, Lo_D, Hi_D, 'mode', 'ma_pywtCoeffsmd_pywtCoeffs)zdwt_matlabR2012a_result.npz)5__doc__numpynppywtpymatbridger   mlab_matlab_missingImportErrorprintOSErrorsize_setmodesfamiliessumwavelistwaveletsrandomRandomStaterstatestartall_matlab_resultsr   Waveletwset_variablelistrangedec_len
data_sizesNrandnr!   pmodemmodeanyarraydec_lodec_hi	mlab_coderun_coderesRuntimeErrorasarrayget_variabler2   r3   joinstrma_keymd_keystopsavez)names   0c/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/pywt/tests/data/generate_matlab_data.py<module>ri      s  $  "8DO 
C
DD	# 19d#92>			t	$ 

4LL!)W-veAIIr23,-J ))QYY]3JA<<?Dfd+ %u667bhh  0d  'e  e  lm  n%%fahh7%%fahh7"249":I #J%PS TImmI.9~&GH H ZZ 1 1$ 78ZZ 1 1$ 785'3q64"@A5'3q64"@A-/"6*-/"6* !!&!((3!!&!((3HsS	mmI.9~&GH H ZZ 1 1$ 78ZZ 1 1$ 785'3q6?"KL5'3q6?"KL-/"6*-/"6*K !&  d 	IIK  =*< =c  	    O	. :p 	IIKs#   M M%J$M* M"!M"*M<