from rsf.proj import *
Fetch('piece-regular.HH','wavelet')
Flow('pr','piece-regular.HH','dd form=native')
Plot('pr','graph title=Signal')
type = ARGUMENTS.get('type','b')
Flow('dwt','pr','dwt type=%s' % type)
Plot('dwt','graph title="Discrete Wavelet Transform (type=%s)" ' % type)
pclip = int(ARGUMENTS.get('pclip',50))
Flow('inv','dwt',
'threshold pclip=%d | dwt type=b adj=y inv=y' % pclip)
Plot('inv','graph title="Approximation (pclip=%d)" ' % pclip)
Result('wavelet','pr dwt inv','OverUnderAniso')
End() |