摘要:
std::vector> fillContour(const std::vector> & _contours) { // sort as x descent y descent. std::vector> contours(_contours); for(size_t i = 0; i sub(contours[i]); std::sort(sub.begin(), sub.end(... 阅读全文
摘要:
cv::Mat left_image; right_image.push_back(cv::Mat((cv::Mat_(1, 3) << ori.x, ori.y, ori.z))); 阅读全文
摘要:
#define _WINSOCK_DEPRECATED_NO_WARNINGS #include #include #include #include #include #include using namespace std; #pragma comment(lib, "ws2_32.lib") int main() { WORD sockVersion = MAKEWORD(... 阅读全文
摘要:
#include using namespace cv; struct mouse_para { cv::Mat org; cv::Mat img; std::string winName = ""; // todo: you can add your own members here. }; void on_mouse(int event, int x, int y, i... 阅读全文
摘要:
mypath=%~dp0 阅读全文
摘要:
@echo off echo add current path into environmet... set regpath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment set evname=BAT_HOME set batpath=c:\bat reg add "%regpath... 阅读全文
摘要:
@echo off echo delete current path into environmet... set regpath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment set evname=BAT_HOME reg delete "%regpath%" /v "%evnam... 阅读全文
摘要:
// 使用window api 获得系统时间 // 生成 #include "stdafx.h" #include #include #include int main() { SYSTEMTIME sys; GetLocalTime(&sys); printf("%4d/%02d/%02d %02d:... 阅读全文