opencv
a1025891161
这个作者很懒,什么都没留下…
展开
-
基于opencv的对图像的垂直翻转
//垂直翻转 int imgVerticalRotary( const Mat srcImg,//输入图片 Mat &VertImg)//输出图片 { if(!srcImg.data){ return -1; } int nRet = 0; // VertImg = Mat原创 2017-07-28 15:06:59 · 1264 阅读 · 0 评论 -
将Mat矩阵图像绘制在DC上
//将Mat绘制到DC上 void DrawMatToDC(HDC MemDC, const Mat& tmpMat) { uchar buffer[sizeof(BITMAPINFOHEADER) + 1024]; BITMAPINFO* bmi = (BITMAPINFO*)buffer; int bmp_w = tmpMat.cols, bmp_h = tmp原创 2017-07-28 14:59:13 · 911 阅读 · 0 评论 -
基于opencv的图像的无失真放大
//无失真放大 void DistortionFreeAmplification(const Mat& tmpGrayMat, Mat& dstMat, int times = 8) { dstMat = cv::Mat(tmpGrayMat.rows * times, tmpGrayMat.cols * times, tmpGrayMat.type()); for (int i=0; i原创 2017-07-28 14:46:20 · 3939 阅读 · 1 评论