原创 git的誕生
很多人都知道,Linus在1991年創建了開源的Linux,從此,Linux系統不斷髮展,已經成爲最大的服務器系統軟件了。 Linus雖然創建了Linux,但Linux的壯大是靠全世界熱心的志願者參與的,這麼多人在世界各地爲Linux編寫
原创 windows內存監控
#include <thread> #include <Windows.h> #include <Psapi.h> #pragma comment(lib , "psapi.lib") #include "Common/LogInf.h
原创 windows平臺下的高精度定時器
class CHTimerListener { public: virtual void Update() = 0; }; class CHTimer { public: CHTimer(); ~CHTimer
原创 圖像處理經典算法及OpenCV程序
基於opencv的use攝像頭視頻採集程序... 1 基於opencv的兩個攝像頭數據採集... 3 能激發你用代碼做視頻的衝動程序... 6 圖像反轉(就是把黑的變白,白的變黑)... 11 圖像格式的轉換... 12 從攝像頭或者AV
原创 vgg16介紹
預處理 圖片的預處理就是每一個像素減去了均值,算是比較簡單的處理。 卷積核 整體使用的卷積核都比較小(3x3),3x3是可以表示「左右」、「上下」、「中心」這些模式的最小單元了。 3 × 3 which is the sma
原创 STL容器的內存管理
class Unit { public: Unit(); Unit(int id); ~Unit(); private: int id = -1; }; Unit::Unit() { } Unit::Unit(int _i
原创 opencv初化化Mat的方法
cv::Mat out = cv::Mat(cv::Size(w, h), CV_8UC(chn), imgBuf);
原创 STL 常用
void read_file(const std::string& path, std::string& out) { std::ifstream fs(path, std::ios_base::binary); fs.s
原创 UTF8 to ASCII & ASCII to UTF8
string UTF82ASCII(const char* cont) { if (NULL == cont) { return string(""); } int num = MultiB
原创 cmake中配置MFC
#set MFC#add definitionsif(CMAKE_HOST_WIN32) #ADD_DEFINITIONS(-D_AFXDLL)#如果使用動態庫的MFC,則加上_AFXDLL SET(CMAKE_MFC_FLA
原创 std::string startwith endwith split 方法
bool endWith(const string &str, const string &tail) { return str.compare(str.size() - tail.size(), tail.size(), tail)
原创 caffe vs2015環境搭建
--http://blog.csdn.net/longji/article/details/60964998注意: 在cmake的時候需要根據情況仔細修改配置,比如,如果gpu的能力不足3.0的話,在windows上就不能開啓cudnn,
原创 單例模式(工廠模式)
class TestClass { public: TestClass(); ~TestClass(); static TestClass *get() { static TestClass ff; return &ff;
原创 C++ 數字轉字符串的兩種方法
char text[100]; sprintf(text, "./out%d.txt", id);c++11std::string std::to_string(id)