unfmg.c
来自「这是一个关于最小二乘法相位积分展开的实现程序」· C语言 代码 · 共 21 行
C
21 行
/*
* unfmg.c -- function for multigrid solution of UNWEIGHTED
* least-squares phase-unwrapping problem
*/
#include <stdio.h>
#include <math.h>
#include "unfmg.h"
#include "ungrid.h"
#include "dxdygrad.h"
/* Unweighted multigrid function. */
/* Initialize soln array to zero before calling. */
void UnweightedMultigridUnwrap(float *soln, float *dx, float *dy,
int xsize, int ysize, int num_cycles, int num_iter)
{
int n, coarsest_dim=3;
for (n=0; n<num_cycles; n++) {
printf("\nFMG CYCLE %d\n", n+1);
Ufmg(soln, dx, dy, xsize, ysize, num_iter, coarsest_dim);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?