liftpack-3.0b2j-cc

所属分类:波变换
开发工具:C++
文件大小:870KB
下载次数:188
上传日期:2005-09-16 23:41:24
上 传 者管理员
说明:  第二代小波变换的源代码,内容包括常用的著名小波基,并全部用类封装实现
(second generation wavelet transform the source code, as used in the famous 101416, and all types of packaging used to achieve)

文件列表:
liftpack-3.0b2j (0, 1999-10-22)
liftpack-3.0b2j\.dep (0, 1999-10-22)
liftpack-3.0b2j\CHANGES (2179, 1999-10-22)
liftpack-3.0b2j\COPYRIGH (2684, 1998-02-11)
liftpack-3.0b2j\LICENSE (2211, 1997-04-09)
liftpack-3.0b2j\Makefile (9534, 1999-10-22)
liftpack-3.0b2j\TODO (177, 1998-09-09)
liftpack-3.0b2j\bin (0, 1999-10-22)
liftpack-3.0b2j\commands.c (61076, 1997-08-26)
liftpack-3.0b2j\copyrinc.c (2852, 1998-03-26)
liftpack-3.0b2j\corelib (0, 1999-10-22)
liftpack-3.0b2j\corelib\.backup (0, 1999-10-22)
liftpack-3.0b2j\corelib\.backup\core-98-cc.tar.gz (6738, 1998-11-14)
liftpack-3.0b2j\corelib\Makefile (463, 1997-04-16)
liftpack-3.0b2j\corelib\include (0, 1999-10-22)
liftpack-3.0b2j\corelib\include\Makefile (437, 1996-09-19)
liftpack-3.0b2j\corelib\include\core.h (945, 1997-06-26)
liftpack-3.0b2j\corelib\include\dm.h (701, 1996-09-19)
liftpack-3.0b2j\corelib\include\mm.h (1714, 1996-11-30)
liftpack-3.0b2j\corelib\src (0, 1999-10-22)
liftpack-3.0b2j\corelib\src\.dep (0, 1999-10-22)
liftpack-3.0b2j\corelib\src\Makefile (3813, 1998-09-09)
liftpack-3.0b2j\corelib\src\RANLIB.csh (451, 1996-09-12)
liftpack-3.0b2j\corelib\src\core.c (251, 1996-09-12)
liftpack-3.0b2j\corelib\src\dm.c (5013, 1996-09-19)
liftpack-3.0b2j\corelib\src\mm.c (9117, 1996-11-15)
liftpack-3.0b2j\depend.sh (225, 1997-04-11)
liftpack-3.0b2j\doc (0, 1999-10-22)
liftpack-3.0b2j\edgelib (0, 1999-10-22)
liftpack-3.0b2j\edgelib\.backup (0, 1999-10-22)
liftpack-3.0b2j\edgelib\.backup\edge-98-cc.tar.gz (17327, 1998-11-14)
liftpack-3.0b2j\edgelib\Makefile (463, 1997-04-16)
liftpack-3.0b2j\edgelib\include (0, 1999-10-22)
liftpack-3.0b2j\edgelib\include\Makefile (437, 1996-10-15)
liftpack-3.0b2j\edgelib\include\coordinate.h (948, 1996-10-15)
liftpack-3.0b2j\edgelib\include\flwd.h (1545, 1997-04-16)
liftpack-3.0b2j\edgelib\include\point.h (1276, 1996-11-12)
liftpack-3.0b2j\edgelib\include\point_compute.h (590, 1996-11-03)
... ...

>>> LiftPack: Implementation of the <<< >>> Fast Lifted Wavelet Transform on the Interval <<< >>> Beta Version 3.0b <<< DESCRIPTION: In this directory, there are all the main front-end files that allow you to use the Fast Lifted Wavelet Transform (FLWT) with 1-D and 2-D signals/images. There is an easy-to-use command line interface that includes the main features that can be manipulated for the user. Optionally, there is a more powerful interface developed using Tcl that provides more options and is easier to handle. The libraries in LiftPack provide access to a family of Biorthogonal wavelets, Haar wavelets, point operations to the elements of the image, global operations with images, and file handling. The command-line interface provides limited access to all the options, but is useful for fast testing. The Tcl interface is more powerful and provides access to all the options. It is useful for scripting and for automated tasks. INTERFACE: The default interface is a command-line parser that executes the requested options depending on the parameters passed from the command line. This interface provides limited functionality and is mainly used for fast and simple testing. The Tcl interface uses code provided by the Tcl distribution to handle the parsing and command execution. LiftPack adds a set of commands to the parser that allows the user to use the options listed below. This interface is object-oriented and provides more flexibility. Optionally, the Tk set of commands and the Tix extension can be added to allow the user to create GUI's using the libraries provided by LiftPack. When this option is enabled, a new option is added to the shell to convert from the internal image format used by LiftPack to the Photo image format used by Tk. Therefore, all the manipulation can be done entirely by Tk and Tix. This version of LiftPack has been tested with Tcl 7.5/7.6, Tk 4.1/4.2, and Tix 4.1. Older versions are not encouraged since they do not handle things the same way. LiftPack should also compile and work with Tcl/Tk 8.0 because we do not make any significant changes to the core. We just add commands to the shell and provide a set of methods to handle them. The main incompatibilities are with the shell scripts you might write using LiftPack, and mainly in the Tcl/Tk/Tix commands themselves. VERSION: This is version 3.0b2j. This means that this is the tenth update of the second minor version of the third major beta version. The current final release is 1.0 and can be located in http://www.cs.sc.edu/~fernande/liftpack/release.html It is the result of the 2.0b beta cycle. The next final release will be 2.0 when we finish with the beta testing of 3.0b. OPTIONS: The main options of LiftPack are listed below. 1) Wavelet Transform Command Line: The forward transform is executed by default, unless the -i option is specified. If user wants both transforms to be executed, then use the -b option with a value of 1.0 (see option 2). Tcl Shell: No option is selected by default. Must decide by using -forward, -inverse, or -filter 1.0 (see option 2). Refer to the flwt class for more information. 2) Wavelet Filter Command Line: The -b option applies the Beta value to the result of the forward transform and, then, executes the inverse to see the effects. If the -i option is written after the -b option, the forward transform is not executed, i.e., the Beta operator is applied directly to the original dataset and, then, the inverse transform is executed. Tcl Shell: The -filter option behaves in the same way as the command line option. 3) Wavelet Edge Detector Command Line: Not available. Tcl Shell: Using Mallat and Zhong's idea of wavelet local maxima, we use the Fast Lifted Wavelet Decomposition (FLWD) to calculate subsampled multiresolution gradient, orientation, and edge maps. These operations are executed by the 'flwd' command. 4) Vanishing moments Command Line: Four (4) vanishing moments for the Dual wavelet function and (2) for the Real wavelet function are assumed. The values are changed with the -N and -n options, respectively. Tcl Shell: One (1) vanishing moment for both the Dual and Real functions. This corresponds to the Haar wavelet. The values are changed with the -real and -dual options to generate families of Biorthogonal wavelets. 5) Scaling: Command Line: The final values are not scaled, unless the -s option is used. This option scales the values by shifting everything into a positive domain and by truncating any value grater than 255 into 255. Tcl Shell: Use the scale method of the img class. Both -linear and -log options are provided. 6) Files: Command Line: Use the -o option to set the output file and the -t to set the output type. Tcl Shell: Refer to the img class for the file options. INSTALLATION: To install the package, first edit the Makefile and make.env files to configure things to your specific environment. Especially, pay attention to the compiler, optimization flags, and the interface options. You have to decide whether to use the command line parser or the Tcl interface. If you select Tcl, you will have to decide if you want to use Tk and Tix too. Another simple way to try various compilation options without reediting make.env every time is to to use (under bash, ksh or sh) make CDEF='' Once you select the appropriate options, type 'make install' in the command line. All the files will be compiled to create three libraries (libfile.a, libutil.a, and libflwt.a) in the ./lib subdirectory, and the executable liftpack in the ./bin subdirectory. Platform Specific: -------- -------- All platforms (TCL/TK 8.0): From: Delman Lee Date: Fri, 27 Feb 19*** 15:39:54 +0000 The function Tk_FindPhoto() changed interface and now it uses two arguments. The file 'commands.c' must be updated to change the function call to include 'interp' as the first argument. Here is a patch: --- commands.c~ Mon Aug 25 18:25:24 1997 +++ commands.c Fri Feb 27 12:21:48 19*** @@ -307,7 +307,7 @@ } else { Tk_PhotoHandle *imageHandle; - if ( !( imageHandle = Tk_FindPhoto( argv[2] ) ) ) { + if ( !( imageHandle = Tk_FindPhoto( interp, argv[2] ) ) ) { strcpy( interp->result, "ImageMethodProc(): Invalid destination image." ); return TCL_ERROR; Sun Sparc: From: Claude Williams Date: Fri Jun 27, 11:42am -0400 > Warning: -M passed to ld > Fatal: ld option: -Y : unknown directory. I have found the solution, which was simple, after I found what the problem was. I realized that the confusion was happening somewhere outside of the Makefile which meant in the System somewhere. So, I did a man on cc, ld, and all the other commands I could think of, problem was, man cc told me that -M was valid, but the cryptic errors indicated that it was not. Then I did a which on cc, ld, and all the other commands I could think of, and found that the cc that man talked about and the cc that actually ran where not the same (/ucb vs. /SUNSWspro) so I found the man for the cc that was actually running, found the dependency option (-xM), changed the Makefiles that you have all over the place, and it works fine. NOTE: This problem was solved by creating a common dependency flag in the make.env file. GFN Solaris: From: Bingwen Du Date: Wed May 7, 2:36pm -0230 You might have to include values.h in ./utillib/include/util.h to solve some undefined errors regarding MINFLOAT, MAXFLOAT, etc. --- From: Bingwen Du Date: Wed May 7, 2:36pm -0230 If you use TK, the compiler will probably complain about X11/Xlib.h and the X11 library. Please include the right paths to them in the TCL_INCLUDE_DIR and TCL_LIBRARY_DIR variables in the Makefile. For example, TCL_INCLUDE_DIR=-I/usr/local/include -I/usr/openwin/include TCL_LIBRARY_DIR=-L/usr/local/lib -I/usr/openwin/lib Linux: From: Richard Andrews Date: Wed, 21 Oct 19*** 11:43:26 +1100 Had to make some modifications to Makefile to get Liftpack 3.0b2i to compile: Interface = Tcl/Tk System: Linux-2.0.33 Tcl7.6/Tk4.2 SHELL=/bin/sh Modifications: 1. Using suggested installation point for Tcl/Tk 7.6/4.2(patch 2) given by Sun. TCL_INCLUDE_DIR=-I/usr/local/include TCL_LIBRARY_DIR=-L/usr/local/lib 2. Since libtk.so is not installed at same point as libX11.so TCL_LIBRARIES=-ltk4.2 -ltcl7.6 $(TCL_DL) -L/usr/X11R6/lib -lX11 --- From: Enrico Cherubini Date: Wed Feb 4, 2:46pm +0100 I'm using the Debian GNU/linux 1.3, kernel 2.0.33 and 'bash' shell. The first, big trouble is in the main Makefile. For this specific shell there are syntax errors after every 'fi'. You should add a ';': - original Libraries: @for i in $(SUBDIRS) ;\ do \ if [ -d $$i ]; then \ ( cd $$i ; \ $(MAKE) $(MFLAGS) all ; \ ); \ fi \ done - modified Libraries: @for i in $(SUBDIRS) ;\ do \ if [ -d $$i ]; then \ ( cd $$i ; \ $(MAKE) $(MFLAGS) all ; \ ); \ fi; \ # Modified line done Every 'fi' should be modified in this way. Another problem is with the #include for tcl.h and tk.h. In my distribution they aren't in /usr/include but in /usr/include/tcl. Also, the X11 libraries are located in /usr/X11R6/lib. Modify the following macros to account for this TCL_INCLUDE_DIR=-I/usr/include/tcl TCL_LIBRARY_DIR=-L/usr/X11R6/lib It is important to remember that Dynamic Loading is needed under Linux. Hence, the following line should be uncommented in the Makefile: TCL_DL=-ldl HP-UX: From: Ralf Hildebrandt Date: Mon, 9 Feb 19*** 18:33:45 +0100 The values.h header filem is needed in ./edgelib/src/point_compute.c, ./edgelib/src/point_functions.c and ./utillib/src/util.c with the GCC compiler. Windows 95: From: Wang Zulin Date: Mon Mar 16, 10:53pm +0800 I compiled and run the Liftpack R3.0b under Windows 95. The compiler is visual C++ 5.0. Because the VC++ can't use the MAKEFILE you offered, by means of the wizard of VC++ I created a Win32 Console Application, put all source files into the project and put all header files into one directory. The executable file was created successfully. Because the default mode is text when a file is opened, I added the following statements into MAIN.C at line 453: #include // alter the default mode to Binary mode. #include // the three lines were added by WZL _fmode = _O_BINARY; // Mar. 5, 19*** Under Windows 95, the -s option may actually cause unwanted results when inverting the wavelet coefficients. For example, in the example Invertible example : liftpack -t txt -o out.txt lena.pgm liftpack -i -s -t pgm -o lenainv.pgm out.txt ('lenainv.pgm' and 'lena.pgm' contain exactly the same data) The -s option may not be needed at all.

近期下载者

相关文件


收藏者