{"id":895,"date":"2013-06-07T22:35:00","date_gmt":"2013-06-07T14:35:00","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=895"},"modified":"2013-06-07T22:35:25","modified_gmt":"2013-06-07T14:35:25","slug":"opencv%e4%b9%8brio%e7%a4%ba%e4%be%8b","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/895","title":{"rendered":"opencv\u4e4broi\u793a\u4f8b"},"content":{"rendered":"
\u4ee5\u540e\u4e89\u53d6\u6bcf\u5929\u5b9e\u9a8c\u4e00\u4e2aopencv\u4ee3\u7801\u5427\uff0c\u8fd9\u6837\u4ee5\u540e\u5c31\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u8fd9\u4e9b\u4ee3\u7801\u4e86<\/p>\n
opencv\u4e4broi\u793a\u4f8b<\/p>\n
IplImage * test;
\ntest = cvLoadImage(“2.jpg”);
\ncvNamedWindow(“\u54c8\u54c8”,CV_WINDOW_AUTOSIZE );
\ncvShowImage(“\u54c8\u54c8”,test);
\n\/\/\u8bbe\u7f6e\u4e00\u4e0b\u611f\u5174\u8da3\u533a\u57df\uff0c\u5e76\u4e14\u663e\u793a\u51fa\u6765roi
\ncvSetImageROI(test,(cvRect)(1,1,200,200));
\ncvNamedWindow(“ROI”,CV_WINDOW_AUTOSIZE );
\ncvShowImage(“ROI”,test);
\n\/\/\u8bbe\u7f6e\u4e00\u4e0b\u611f\u5174\u8da3\u901a\u9053\uff0c\u5e76\u4e14\u663e\u793a\u51fa\u6765coi
\ncvResetImageROI(test);
\ncvSetImageCOI(test,0);
\ncvNamedWindow(“COI”,CV_WINDOW_AUTOSIZE );
\ncvGetImageCOI(test);
\ncvShowImage(“COI”,test);<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"\u4ee5\u540e\u4e89\u53d6\u6bcf\u5929\u5b9e\u9a8c\u4e00\u4e2aopencv\u4ee3\u7801\u5427\uff0c\u8fd9\u6837\u4ee5\u540e\u5c31\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u8fd9\u4e9b\u4ee3\u7801\u4e86 opencv\u4e4broi\u793a\u4f8b IplImage * test; test = cvLoadImage(“2.jpg”); cvNamedWindow(“\u54c8\u54c8”,CV_WINDOW_AUTOSIZE ); cvShowImage(“\u54c8\u54c8”,test); \/\/\u8bbe\u7f6e\u4e00\u4e0b\u611f\u5174\u8da3\u533a\u57df\uff0c\u5e76\u4e14\u663e\u793a\u51fa\u6765roi cvSetImageROI(test,(cvRect)(1,1,200,200)); cvNamedWindow(“ROI”,CV_WIN<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[150],"tags":[151],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/895"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=895"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/895\/revisions"}],"predecessor-version":[{"id":897,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/895\/revisions\/897"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=895"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}