35 return (x > 0 ? 1 : (x < 0) ? -1 : 0);
38bool Givens(
double** C,
double*
d,
double* x,
double* r,
int N,
int n,
int want_r);
50 for (
size_t i = 0;
i < 3; ++
i)
52 for (
size_t j = 0;
j < 3; ++
j)
132 o <<
H._H[0][0] <<
"\t" <<
H._H[0][1] <<
"\t" <<
H._H[0][2] << std::endl
133 <<
H._H[1][0] <<
"\t" <<
H._H[1][1] <<
"\t" <<
H._H[1][2] << std::endl
134 <<
H._H[2][0] <<
"\t" <<
H._H[2][1] <<
"\t" <<
H._H[2][2] << std::endl;
266 for (
j = 0;
j <
n;
j++)
268 for (
i =
j + 1;
i <
N;
i++)
293 for (
k =
j + 1;
k <
n;
k++)
317 for (
i =
n - 1;
i >= 0;
i--)
322 for (
k =
i + 1;
k <
n;
k++)
333 for (
i =
n;
i <
N;
i++)
344 for (
j =
n - 1;
j >= 0;
j--)
346 for (
i =
N - 1;
i >= 0;
i--)
348 if ((rho = C[
i][
j]) == 1)
353 else if (
fabs(rho) < 1)
360 gamma = 1 /
fabs(rho);
364 r[
i] = -
sigma * r[
j] + gamma * r[
i];
void allocMemory(int iNPoints)
void initMatchesNormalization(PointMatchVector_t &iMatches)
void transformPoint(double iX, double iY, double &oX, double &oY)
bool estimate(PointMatchVector_t &iMatches)
void addMatch(size_t iIndex, PointMatch &iMatch)
bool Givens(double **C, double *d, double *x, double *r, int N, int n, int want_r)
std::ostream & operator<<(std::ostream &o, const Homography &H)
std::shared_ptr< PointMatch > PointMatchPtr
std::vector< PointMatchPtr > PointMatchVector_t
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.