Go to the documentation of this file.00001 #include "thirdparty/decomposition.hpp"
00002 #include "thirdparty/helper.hpp"
00003
00004 void EigenvalueDecomposition::compute(InputArray src)
00005 {
00006 Mat tmp;
00007
00008
00009
00010 src.getMat().convertTo(tmp, CV_64FC1);
00011
00012 this->n = tmp.cols;
00013
00014 this->H = alloc_2d<double>(n, n);
00015
00016 for (int i = 0; i < tmp.rows; i++)
00017 {
00018 for (int j = 0; j < tmp.cols; j++)
00019 {
00020 this->H[i][j] = tmp.at<double>(i, j);
00021 }
00022 }
00023
00024 tmp.release();
00025
00026 compute();
00027 }
00028