1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

continued merging of C, Python and C++ reference manuals

This commit is contained in:
Vadim Pisarevsky
2011-06-27 22:42:45 +00:00
parent a2880a547a
commit c6b7cfc13c
16 changed files with 466 additions and 102 deletions
+22 -1
View File
@@ -1,3 +1,24 @@
#include "test_precomp.hpp"
CV_TEST_MAIN("cv")
//CV_TEST_MAIN("cv")
int main(int, char**)
{
cv::Matx33f m = cv::Matx33f::eye();
cv::Matx33f::diag_type d = m.diag();
std::cout << "diag: " << cv::Mat(d) << std::endl;
cv::Matx33f n = cv::Matx33f::diag( d );
std::cout << "diag matrix: " << cv::Mat(n) << std::endl;
cv::Point2f p( 1.f, 2.f );
cv::Size2f s( 3.f, 4.f );
cv::RotatedRect rr( p, s, 5.f );
cv::Point2f pts[4];
rr.points( pts );
for( int i = 0; i < 4; i++ )
std::cout << pts[i].x << " " << pts[i].y << std::endl;
return 0;
}