[pktools] 166/375: verbose information for dwt in spectgral domain

Bas Couwenberg sebastic at xs4all.nl
Wed Dec 3 21:54:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch upstream-master
in repository pktools.

commit abfc644ca4c358f51e2a3de5f10139af42d09e99
Author: Pieter Kempeneers <kempenep at gmail.com>
Date:   Tue Dec 24 12:34:14 2013 +0100

    verbose information for dwt in spectgral domain
---
 src/apps/pkfilter.cc | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/apps/pkfilter.cc b/src/apps/pkfilter.cc
index 7eaf741..9ca1aaf 100644
--- a/src/apps/pkfilter.cc
+++ b/src/apps/pkfilter.cc
@@ -642,8 +642,11 @@ int main(int argc,char **argv) {
 	std::cerr << "Error: down option not supported for this filter" << std::endl;
 	exit(1);
       }
-      if(dimZ_opt.size())
+      if(dimZ_opt.size()){
+        if(verbose_opt[0])
+          std::cout<< "DWT in spectral domain" << std::endl;
 	filter1d.dwtForward(input, output, wavelet_type_opt[0], family_opt[0]);
+      }
       else
 	filter2d.dwtForward(input, output, wavelet_type_opt[0], family_opt[0]);
       break;
@@ -652,8 +655,11 @@ int main(int argc,char **argv) {
 	std::cerr << "Error: down option not supported for this filter" << std::endl;
 	exit(1);
       }
-      if(dimZ_opt.size())
+      if(dimZ_opt.size()){
+        if(verbose_opt[0])
+          std::cout<< "inverse DWT in spectral domain" << std::endl;
 	filter1d.dwtInverse(input, output, wavelet_type_opt[0], family_opt[0]);
+      }
       else
 	filter2d.dwtInverse(input, output, wavelet_type_opt[0], family_opt[0]);
       break;
@@ -662,8 +668,11 @@ int main(int argc,char **argv) {
 	std::cerr << "Error: down option not supported for this filter" << std::endl;
 	exit(1);
       }
-      if(dimZ_opt.size())
+      if(dimZ_opt.size()){
+        if(verbose_opt[0])
+          std::cout<< "DWT approximation in spectral domain" << std::endl;
 	filter1d.dwtCut(input, output, wavelet_type_opt[0], family_opt[0], threshold_opt[0]);
+      }
       else
 	filter2d.dwtCut(input, output, wavelet_type_opt[0], family_opt[0], threshold_opt[0]);
       break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git



More information about the Pkg-grass-devel mailing list