摘要: 完整项目下载地址: http://download.csdn.net/detail/hi_dahaihai/9892004 本项目即拿MFC做了一个画板,画一个数字后可自行识别数字。此外还 有保存图片、清空画板功能,简单实用。 识别方法为SVM调用已经训练好的MNIST数据集"SVM_DATA.xm 阅读全文
posted @ 2017-07-08 19:19 Henry2017 阅读(455) 评论(0) 推荐(0) 编辑
摘要: Point2f pointIntersection(Point2f p1, Point2f p2, Point2f p3, Point2f p4) { //p1,p2所在一条直线,p3,p4所在一条直线,求两条直线的交点 //p1,p2所成的直线 BOOL flag1=FALSE,flag2=FALSE; Point2f p;//存放最后的交点 float... 阅读全文
posted @ 2017-07-04 23:23 Henry2017 阅读(951) 评论(0) 推荐(1) 编辑
摘要: 1 #include "stdafx.h" 2 #include 3 4 using namespace std; 5 6 /* 构造完成标志 */ 7 bool sign = false; 8 9 /* 创建数独矩阵 */ 10 int num[9][9]; 11 12 /* 函数声明 */ 13 void Inp... 阅读全文
posted @ 2017-06-29 16:03 Henry2017 阅读(691) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/candyliuxj/article/details/6736032 阅读全文
posted @ 2017-06-27 20:39 Henry2017 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/chw1989/article/details/7488711 一。大小和位置都改变 1.首先为窗体类添加CRect m_rect,该成员变量用来记录窗体的当前大小。 2.在类向导里面(Ctrl+W),为窗体添加消息WM_SIZE的响应函数OnSize 阅读全文
posted @ 2017-06-27 19:31 Henry2017 阅读(2603) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/giantchen547792075/article/details/7169255 Mat::~Mat Mat的析构函数。 C++: Mat::~Mat() 析构函数调用Mat::release()。 Mat::operator = 提供矩阵赋值操作 阅读全文
posted @ 2017-06-22 22:26 Henry2017 阅读(3352) 评论(0) 推荐(0) 编辑
摘要: 1 CRect rect; 2 m_glassRight.GetWindowRect(&rect); 3 HBITMAP hBmp = (HBITMAP)::LoadImage(NULL, picPath, IMAGE_BITMAP, rect.Width(), rect.Height(), LR_LOADFROMFILE); 4 //m_glas... 阅读全文
posted @ 2017-06-15 19:49 Henry2017 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 具体见: http://blog.csdn.net/theplayerwuliang/article/details/6431722 复制代码可运行: 阅读全文
posted @ 2017-06-05 21:21 Henry2017 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 诗也好,文也好 给灵儿,给逍遥。 未老痴莫笑, 情长御天高, 仙灵仙侣春花闹, 瑶池水系,长生殿绕, 任风飘,任雨潇。 星移斗转暮与朝, 一场阑珊逐寂寥, 陌路谣叹心酸事, 前尘尽却盼君好。 离别好,离别好? 爱怨痴缠一肩挑。 将军冢,塔锁妖, 欺山赶海哭与笑。 知守进退夫妻事, 又续前情赴明遭。  阅读全文
posted @ 2017-05-25 22:47 Henry2017 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 对于CreateCompatibleDC申请的DC,应该用deletedc释放,而getDC取得的DC资源,用releaseDC释放,不对应的话就会造成GDI泄露。 阅读全文
posted @ 2017-05-25 15:20 Henry2017 阅读(136) 评论(0) 推荐(0) 编辑