Line 186... |
Line 186... |
186 |
cv::Mat up1 = unwrapWithCue(up1Primary, up1Equivalent, (float)screenCols/periodPrimary);
|
186 |
cv::Mat up1 = unwrapWithCue(up1Primary, up1Equivalent, (float)screenCols/periodPrimary);
|
187 |
up1 *= screenCols/(2.0*pi);
|
187 |
up1 *= screenCols/(2.0*pi);
|
188 |
cv::Mat amplitude1;
|
188 |
cv::Mat amplitude1;
|
189 |
cv::magnitude(F1Primary[2], -F1Primary[3], amplitude1);
|
189 |
cv::magnitude(F1Primary[2], -F1Primary[3], amplitude1);
|
190 |
|
190 |
|
191 |
cvtools::writeMat(up0Primary, "up0Primary.mat", "up0Primary");
|
191 |
//cvtools::writeMat(up0Primary, "up0Primary.mat", "up0Primary");
|
192 |
cvtools::writeMat(up0Secondary, "up0Secondary.mat", "up0Secondary");
|
192 |
//cvtools::writeMat(up0Secondary, "up0Secondary.mat", "up0Secondary");
|
193 |
cvtools::writeMat(up0Equivalent, "up0Equivalent.mat", "up0Equivalent");
|
193 |
//cvtools::writeMat(up0Equivalent, "up0Equivalent.mat", "up0Equivalent");
|
194 |
cvtools::writeMat(up0, "up0.mat", "up0");
|
194 |
//cvtools::writeMat(up0, "up0.mat", "up0");
|
195 |
cvtools::writeMat(amplitude0, "amplitude0.mat", "amplitude0");
|
195 |
//cvtools::writeMat(amplitude0, "amplitude0.mat", "amplitude0");
|
196 |
|
196 |
|
197 |
// Rectifying homographies (rotation+projections)
|
197 |
// Rectifying homographies (rotation+projections)
|
198 |
cv::Size frameSize(frameCols, frameRows);
|
198 |
cv::Size frameSize(frameCols, frameRows);
|
199 |
cv::Mat R, T;
|
199 |
cv::Mat R, T;
|
200 |
// stereoRectify segfaults unless R is double precision
|
200 |
// stereoRectify segfaults unless R is double precision
|