资源简介
这是一个SNAPHU相位解缠的C++程序,它可以帮助你更好的理解SNAPHU相位解缠的原理。
代码片段和文件信息
/*************************************************************************
snaphu main source file
Written by Curtis W. Chen
Copyright 2002 Board of Trustees Leland Stanford Jr. University
Please see the supporting documentation for terms of use.
No warranty.
*************************************************************************/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include “snaphu.h“
/* global (external) variable definitions */
/* flags used for signal handling */
char dumpresults_global;
char requestedstop_global;
/* ouput stream pointers */
/* sp0=error messages sp1=status output sp2=verbose sp3=verbose counter */
FILE *sp0 *sp1 *sp2 *sp3;
/* node pointer for marking arc not on tree in apex array */
/* this should be treated as a constant */
nodeT NONTREEARC[1];
/* pointers to functions which calculate arc costs */
void (*CalcCost)();
long (*EvalCost)();
/* pointers to functions for tailoring network solver to specific topologies */
nodeT *(*NeighborNode)();
void (*GetArc)();
/***************************/
/* main program for snaphu */
/***************************/
int main(int argc char **argv){
/* variable declarations */
infileT infiles[1];
outfileT outfiles[1];
paramT params[1];
time_t tstart;
double cputimestart;
long linelen nlines;
/* get current wall clock and CPU time */
StartTimers(&tstart&cputimestart);
/* set output stream pointers (may be reset after inputs parsed) */
SetStreamPointers();
/* print greeting */
fprintf(sp1“\n%s v%s\n“PROGRAMNAMEVERSION);
/* set default parameters */
SetDefaults(infilesoutfilesparams);
ReadConfigFile(DEF_SYSCONFFILEinfilesoutfiles&linelenparams);
/* parse the command line inputs */
ProcessArgs(argcargvinfilesoutfiles&linelenparams);
/* set verbose output if specified */
SetVerboseOut(params);
/* set names of dump files if necessary */
SetDumpAll(outfilesparams);
/* get number of lines in file */
nlines=GetNLines(infileslinelen);
/* check validity of parameters */
CheckParams(infilesoutfileslinelennlinesparams);
/* log the runtime parameters */
WriteConfigLogFile(argcargvinfilesoutfileslinelenparams);
/* unwrap forming tiles and reassembling if necessary */
Unwrap(infilesoutfilesparamslinelennlines);
/* finish up */
fprintf(sp1“Program %s done\n“PROGRAMNAME);
DisplayElapsedTime(tstartcputimestart);
exit(NORMAL_EXIT);
} /* end of main() */
/* function: Unwrap()
* ------------------
* Sets parameters for each tile and calls UnwrapTile() to do the
* unwrapping.
*/
void Unwrap(infileT *infiles outfileT *outfiles paramT *params
long linelen long nlines){
long nextti
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 538216 2008-10-08 22:50 SNAPHU相位解缠\Phase unwrapping for large SAR interferograms statistical segmentation and generalized network models.pdf
文件 4625 2008-09-16 22:02 SNAPHU相位解缠\README.txt
文件 10508 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\config\snaphu.conf.brief
文件 23353 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\config\snaphu.conf.full
文件 24429 2003-02-25 08:12 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\man\man1\snaphu.1
文件 48059 2003-02-25 08:23 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\man\snaphu_man1.html
文件 29767 2003-02-25 08:20 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\man\snaphu_man1.txt
文件 4593 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\README
文件 1243 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\Makefile
文件 17461 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu.c
文件 51519 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu.h
文件 64541 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_cost.c
文件 39992 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_cs2.c
文件 15041 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_cs2parse.c
文件 2422 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_cs2types.h
文件 100644 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_io.c
文件 67341 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_solver.c
文件 103680 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_tile.c
文件 29691 2003-02-23 16:13 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src\snaphu_util.c
文件 10508 2008-09-16 21:58 SNAPHU相位解缠\snaphu.conf.brief
文件 23353 2008-09-16 21:58 SNAPHU相位解缠\snaphu.conf.full
文件 29767 2008-09-16 21:58 SNAPHU相位解缠\snaphu_man1.txt
目录 0 2008-09-16 22:02 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\man\man1
目录 0 2008-09-16 22:02 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\bin
目录 0 2008-09-16 22:02 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\config
目录 0 2008-09-16 22:02 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\man
目录 0 2008-09-16 22:02 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2\src
目录 0 2008-09-16 22:02 SNAPHU相位解缠\snaphu-v1.4.2\snaphu-v1.4.2
目录 0 2008-09-16 22:02 SNAPHU相位解缠\snaphu-v1.4.2
目录 0 2010-01-25 20:41 SNAPHU相位解缠
............此处省略3个文件信息
- 上一篇:计算机图形学 透视图算法
- 下一篇:操作系统课程设计(最佳适应算法的C++)
评论
共有 条评论