修也

实践出真知.

用OpenCV随意写的对图像的处理9

Mat MyRGB2Gray(const Mat& srcImg){ Mat dst(srcImg.rows,srcImg.cols,CV_8UC1,Scalar::all(0)); for(int i=0;i<srcImg.rows;i++){ ...

2018-01-23 22:11:47

阅读数:69

评论数:0

用OpenCV随意写的对图像的处理8

/** * 图像在每个维度上(width,height)扩大原来的两倍. * 新增偶数列偶数行,值为0. * 使用某种过滤算法填充偶数行列. * 因为图像放大后,新增像素点的值是未知的,是根据相邻像素点推测的. * 而推测的方法可以是过滤器平滑化(smooth)处理哪些无值的点. */...

2018-01-22 23:16:10

阅读数:78

评论数:0

用OpenCV随意写的对图像的处理7

Mat MySmallTwice(const Mat& srcImg){ int rows = srcImg.rows/2; int cols = srcImg.cols/2; Mat dstImg(rows,cols,srcImg.type()); /...

2018-01-22 21:12:49

阅读数:62

评论数:0

OpenCV 形态学滤波综合实例

#include"OpenCVLib2.hpp" using namespace cv; Mat g_srcImg,g_dstImg; int g_nElementShape = MORPH_RECT; int g_nMaxIterationNum = 10; int g_n...

2018-01-22 16:23:55

阅读数:109

评论数:0

用OpenCV随意写的对图像的处理6

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat srcImg = imread("p1.jpg"); imshow("Origin",srcI...

2018-01-22 16:01:41

阅读数:69

评论数:0

用OpenCV随意写的对图像的处理5

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat srcImg = imread("p1.jpg"); imshow("Origin",srcIm...

2018-01-20 00:17:45

阅读数:80

评论数:0

用OpenCV随意写的对图像的处理4

Mat MyErodeFilter(Mat& inputMat,int oddNum){ Mat dstImg(inputMat.rows,inputMat.cols,inputMat.type()); for(int i=0;i<inputMat....

2018-01-19 23:34:23

阅读数:69

评论数:0

用OpenCV随意写的对图像的处理3

Mat MyDilateFilter(Mat& inputMat,int oddNum){ Mat dstImg(inputMat.rows,inputMat.cols,inputMat.type()); for(int i=0;i<inputMat...

2018-01-19 23:20:01

阅读数:77

评论数:0

用OpenCV随意写的对图像的处理2

#include #include"MyBlur.hpp" using namespace cv; Mat MyMeanFilter(Mat& inputMat,int oddNum){ Mat dstImg(inputMat.rows,inputMat....

2018-01-19 02:52:11

阅读数:112

评论数:0

OpenCV 线性滤波简单示例

#include"OpenCVLib2.hpp" using namespace cv; Mat g_srcImg,g_dstImg1,g_dstImg2,g_dstImg3; int g_nBoxFilterValue = 3; int g_nMeanBlurValue =...

2018-01-18 22:16:25

阅读数:95

评论数:0

html多文件和FormData

FormData function upload(){ log("Clicked!"); var tagElement = document.getElementBy...

2018-01-17 23:29:25

阅读数:111

评论数:0

MongoDB创建用户和Java连接MongoDB

> use test switched to db test > db.createUser({user:"xiuye",pwd:"123456",roles:[]}) Successfully added user: { "user&...

2018-01-16 23:31:25

阅读数:778

评论数:1

用OpenCV随意写的对图像的处理1

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat img = imread("p1.jpg"); imshow("Origin",img); ...

2018-01-15 07:03:09

阅读数:124

评论数:0

OpenCV 离散傅里叶变换

#include"OpenCVLib2.hpp" using namespace cv; int main(){ println("Scalar:all(1) = ",Scalar::all(1)); /** * imread ...

2018-01-13 22:30:26

阅读数:119

评论数:0

计算机内部计算的时候是补码还是反码?

#include #include"MyOutput.hpp" int main(){ println("1 & -2 = ",1 & -2);//0 /** * 2 0010 0010 ...

2018-01-13 22:05:03

阅读数:131

评论数:0

OpenCV 图像的对比度和亮度

#include"OpenCVLib2.hpp" using namespace cv; static void on_ContrastAndBright(int,void *); static void ShowHelpText(); int g_nContrastVal...

2018-01-13 18:34:28

阅读数:76

评论数:0

OpenCV 多通道图像混合

#include"OpenCVLib2.hpp" using namespace cv; int main(){ println("OpenCV版本号:",CV_VERSION); Mat srcImg; Mat logoI...

2018-01-13 16:22:54

阅读数:65

评论数:0

OpenCV 合并通道

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat srcImg = imread("p1.jpg"); Mat imgBlueChannel,imgGreenChan...

2018-01-12 20:56:41

阅读数:68

评论数:0

OpenCV 单通道图像

#include"OpenCVLib2.hpp" using namespace cv; int main(){ vector channels; Mat imgBlueChannel; Mat imgGreenChannel; Mat im...

2018-01-12 18:44:39

阅读数:161

评论数:0

OpenCV ROI and 加权叠加图像

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat srcImage1 = imread("p1.jpg"); Mat logoImage = imread("...

2018-01-12 18:26:47

阅读数:59

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭