上一页 1 ··· 106 107 108 109 110 111 112 113 114 ··· 164 下一页
摘要: 实例:加法计算器 Carculator.h文件 #ifndef __CARCULATOR_H_ #define __CARCULATOR_H_ #include <QWidget> #include <QLabel> #include <QPushButton> #include <QLineEdi 阅读全文
posted @ 2020-09-12 04:50 天子骄龙 阅读(341) 评论(0) 推荐(0)
摘要: #include<iostream> void func(void) { char ch3[100] =__FUNCTION__; //返回当前函数名 std::cout << ch3 << std::endl; } int main() { char ch[250]= __FILE__; //返回 阅读全文
posted @ 2020-09-09 15:42 天子骄龙 阅读(184) 评论(0) 推荐(0)
摘要: #include <QApplication> #include <QPushButton> #include <QWidget> int main(int argc,char *argv[]) { QApplication app(argc,argv); QWidget win; //创建窗体 Q 阅读全文
posted @ 2020-09-07 18:43 天子骄龙 阅读(911) 评论(0) 推荐(0)
摘要: #include <QTextCodec> qmake: QT += core 【自动加】 QTextCodec *codec = QTextCodec::codecForName("GBK"); //创建GBK编码转换对象 QString string = codec->toUnicode("GB 阅读全文
posted @ 2020-09-06 21:25 天子骄龙 阅读(696) 评论(0) 推荐(0)
摘要: Header: 头文件 qmake: 构建器 Inherits: 继承 List of all members, including inherited members 列出所有成员 Obsolete members 过时成员 Properties 属性 类中成员变量 Public Function 阅读全文
posted @ 2020-09-06 07:00 天子骄龙 阅读(235) 评论(0) 推荐(0)
摘要: polylines 画多边形 方式一 cv::Mat src(600, 600, CV_8UC3, cv::Scalar(0,0,0)); //创建多边形的点 cv::Point points[2][4]; points[0][0] = cv::Point(100, 115); points[0][ 阅读全文
posted @ 2020-09-05 13:04 天子骄龙 阅读(2236) 评论(0) 推荐(0)
摘要: #include <opencv2/opencv.hpp> int main() { cv::Mat src = cv::imread("./tu/马.jpg", cv::IMREAD_UNCHANGED); cv::Mat img(300, 200, CV_32FC3, cv::Scalar(0, 阅读全文
posted @ 2020-09-05 10:44 天子骄龙 阅读(2828) 评论(0) 推荐(0)
摘要: #include <opencv2/opencv.hpp> int main() { cv::Mat src = cv::imread("./tu/马.jpg", cv::IMREAD_UNCHANGED); cv::Mat dst= src.clone(); //图像的拷贝--深拷贝 cv::Ma 阅读全文
posted @ 2020-09-05 09:57 天子骄龙 阅读(1223) 评论(0) 推荐(0)
摘要: 矩形区域裁减 #include <opencv2/opencv.hpp> int main() { cv::Mat src = cv::imread("./tu/马.jpg", cv::IMREAD_UNCHANGED); //矩形区域裁减 int x = 200; // 裁剪区域起始点 x坐标 i 阅读全文
posted @ 2020-09-05 09:27 天子骄龙 阅读(1537) 评论(0) 推荐(0)
摘要: #include <opencv2/opencv.hpp> int main() { cv::Mat src = cv::imread("./tu/马.jpg", cv::IMREAD_UNCHANGED); float scaleW = 0.8; // 定义新图像的大小,宽度缩小到80% floa 阅读全文
posted @ 2020-09-05 07:12 天子骄龙 阅读(2190) 评论(0) 推荐(1)
上一页 1 ··· 106 107 108 109 110 111 112 113 114 ··· 164 下一页