- 博客(5)
- 收藏
- 关注
原创 图像拼接
#ifndef MY_SIFT#define MY_SIFT #define SIGMA_INIT 1.6 #define SIFT_INIT_SIGMA 0.5#define CURVATURE_THRESHOLD 10.0#define CONTRAST_THRESHOLD 0.04 // in terms of 255#define M_PI 3.141592653589793
2015-09-14 11:05:12
1104
原创 排序
#include #include #include using namespace std; struct Obj{ int x; int y; int val; void show() { cout" x:"x",y:"y",val:"val; }}; listObj> insert_sort(listObj> ils){ listObj> olis; listObj>::iterat
2015-09-14 11:02:56
348
原创 显示win32控制台
#ifndef DEBUGCONSOLE_H #define DEBUGCONSOLE_H #include #include #include #include #include #include extern void showWin32Console(); void showWin32Console() { static const
2015-09-14 10:22:45
452
原创 wxWidgets 显示下载进度条
class myApp : public wxApp{ public: bool OnInit(void); }; DECLARE_APP(myApp); IMPLEMENT_APP(myApp); void LoadBarProgress(unsigned curr_val, unsigned max_val, unsigned bar_width = 20) {
2015-09-14 10:09:37
647
原创 通过管道执行cmd命令
string ExeCmd(const char * pszCmd) { //创建匿名管道 SECURITY_ATTRIBUTES sa = {sizeof(SECURITY_ATTRIBUTES), NULL, TRUE}; HANDLE hRead, hWrite; if (!CreatePipe(&hRead, &hWrite, &sa, 0)) {
2015-09-11 15:57:14
985
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅