00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef COREGISTRATION_H
00041 #define COREGISTRATION_H
00042
00043 #include "constants.hh"
00044 #include "readinput.hh"
00045 #include "orbitbk.hh"
00046 #include "slcimage.hh"
00047 #include "productinfo.hh"
00048 #include "bk_baseline.hh"
00049
00050
00051
00052
00053 #ifdef __USE_VECLIB_LIBRARY__
00054
00055 typedef struct {real4 re,im;} STUPID_cr4;
00056
00057 extern "C" { void cgemv (char*, int32*, int32*, complr4*, complr4*, int32*,
00058 complr4*, int32*,
00059 complr4*, complr4*, int32*, int32); }
00060
00061 extern "C" { STUPID_cr4 cdotu (int32*, complr4*, int32*, complr4*, int32*); }
00062 #endif
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074 void coarseporbit(
00075 const input_ell &ell,
00076 const slcimage &master,
00077 const slcimage &slave,
00078 orbit &masterorbit,
00079 orbit &slaveorbit,
00080 const BASELINE &baseline);
00081
00082
00083
00084 void coarsecorrel(
00085 const input_coarsecorr &input,
00086 const slcimage &minfo,
00087 const slcimage &sinfo);
00088
00089
00090
00091 void coarsecorrelfft(
00092 const input_coarsecorr &input,
00093 const slcimage &minfo,
00094 const slcimage &sinfo);
00095
00096
00097
00098 real4 corrfft(
00099 const matrix<real4> &magnitudeMaster,
00100 const matrix<real4> &magnitudeMask,
00101 real4 &offsetL,
00102 real4 &offsetP);
00103
00104
00105
00106 matrix<uint> distributepoints(
00107 real4 numberofpoints,
00108 const window &win);
00109
00110
00111
00112 void getoffset(
00113 const matrix<real4> &Result,
00114 int32 &offsetLines,
00115 int32 &offsetPixels);
00116
00117
00118
00119
00120 void finecoreg(
00121 const input_fine &fineinput,
00122 const slcimage &minfo,
00123 const slcimage &sinfo);
00124
00125
00126
00127 real4 coherencefft(
00128 const input_fine &fineinput,
00129 const matrix<complr4> &Master,
00130 const matrix<complr4> &Mask,
00131 real4 &offsetL,
00132 real4 &offsetP);
00133
00134
00135
00136 real4 coherencespace(
00137 const input_fine &fineinput,
00138 const matrix<complr4> &Master,
00139 const matrix<complr4> &Mask,
00140 real4 &offsetL,
00141 real4 &offsetP);
00142
00143
00144
00145 void coregpm(
00146 const window &originalmaster,
00147 const char *i_resfile,
00148 const input_coregpm &coregpminput,
00149 uint oversamplingsfactor);
00150
00151
00152
00153 matrix<real4> getofffile(
00154 const char *file,
00155 real4 threshold);
00156
00157
00158
00159 void resample(
00160
00161 const input_gen &generalinput,
00162 const input_resample &resampleinput,
00163 const slcimage &master,
00164 const slcimage &slave,
00165
00166 const matrix<real8> &cpmL,
00167 const matrix<real8> &cpmP);
00168
00169
00170
00171 matrix<real4> cc4(const matrix<real4> &x);
00172 matrix<real4> cc6(const matrix<real4> &x);
00173 matrix<real4> ts6(const matrix<real4> &x);
00174 matrix<real4> ts8(const matrix<real4> &x);
00175 matrix<real4> ts16(const matrix<real4> &x);
00176 matrix<real4> rect(const matrix<real4> &x);
00177 matrix<real4> tri(const matrix<real4> &x);
00178
00179 matrix<real4> knab(const matrix<real4> &x, const real4 CHI, const int32 N);
00180
00181
00182
00183 #endif // COREGISTRATION_H
00184
00185
00186