- 博客(3)
- 收藏
- 关注
原创 C++批量读入图片
#include <iostream>#include<opencv2/highgui.hpp>#include<string>using namespace std;using namespace cv;int main(){ string path = "E:\\daoju\\骨料图片\\1\\"; int len = path.length(); std::vector<cv::String> filena...
2020-08-31 10:23:51
365
转载 MFC显示mat图片
1. 在OnInitDialog初始化函数里添加代码namedWindow("view",WINDOW_AUTOSIZE);HWND hWnd = (HWND) cvGetWindowHandle("view");HWND hParent = ::GetParent(hWnd);::SetParent(hWnd, GetDlgItem(IDC_STATIC_Pic)->m_hWnd);::ShowWindow(hParent, SW_HIDE);其中IDC_STATIC_Pic
2020-08-31 10:09:13
112
原创 MFC一些控件的基本用法
1.edit control显示汉字CString str_hege = "否";SetDlgItemText(IDC_EDIT5, str_hege);显示数字int m ;CString str_m;str_m.Format(_T("%d"), m);SetDlgItemText(IDC_EDIT4, str_m);显示文件路径string path; //path1 = "E:\\daoju\\骨料图片\\2\\1.jpg";CString pathn...
2020-08-31 09:45:22
136
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人