
opencv
chenyuanxu
人品之不高,因利字看不破;学业之不进,为懒字丢不开
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
从头开始opencv(十三)——image:Eroding and Dilating
从头开始opencv(十三)——image:Eroding and DilatingGoalMorphological OperationsDilation(膨胀)Erosion(腐蚀)CodeExplanationerosiondilationCreateTrackbar()参考资料Goal Apply two very common morphological operators: Erosion and Dilation. For this purpose, you will use the原创 2020-11-05 22:05:41 · 548 阅读 · 0 评论 -
从头开始opencv(十二)——image:Smoothing
从头开始opencv(十二)——image:SmoothingGoalTheoryNormalized Box FilterGaussian FilterMedian FilterBilateral FilterCodeExplanationBlur()GaussianBlur()MedianBlur()bilateralFilter()Goal In this tutorial you will learn how to apply diverse linear filters to smooth原创 2020-11-01 10:17:29 · 475 阅读 · 0 评论 -
opencv(十一)——core:file input and output
opencv(十一)——core:file input and outputGoalExplanationwhat is XML/YAMLmainXML/YAML File Open and CloseInput and Output of text and numbersInput/Output of OpenCV Data structuresInput/Output of vectors (arrays) and associative mapsRead and write your own data原创 2020-10-31 17:19:26 · 700 阅读 · 0 评论 -
从头开始opencv(十)——core:Discrete Fourier Transform
从头开始opencv(十)——core:Discrete Fourier TransformGoalCodeExplanationExpand the image to an optimal sizegetOptimalDFTSize()copyMakeBorder()Make place for both the complex and the real valuesmerge()Make the discrete Fourier Transformdft()Transform the real and原创 2020-10-26 22:00:22 · 483 阅读 · 0 评论 -
从头开始opencv(九)——core:random generator and text
从头开始opencv(九)——core:random generator and textGoalsCodeExplanationDrawing_Random_Lines()Drawing_Random_Rectangles()Display_Random_Text()完整代码对官方教程的改进GoalsUse the Random Number generator class and how to get a random number from a uniform distribution(使用R原创 2020-10-25 21:55:43 · 460 阅读 · 3 评论 -
从头开始opencv(八)——core:Basic drawing
文章目录GoalsOpenCV TheoryPointScalarCodeellipse()Circle()fillPoly()rectangle()Line()Goals画一条线画一个椭圆画一个矩形画一个圆画一个填充多边形OpenCV Theory 我们将会频繁使用的是:cv::Point()和cv::Scalar()Point 代表了一个二维的点的坐标。//method 1Point pt;pt.x = 10;pt.y = 8;//method 2Point原创 2020-10-24 21:52:28 · 317 阅读 · 0 评论 -
从头开始opencv(七)——core:changing the contrast and brightness of an image
从头开始opencv(七)——core:changing the contrast and brightness of an imageGoalTheoryImage ProcessingPixel transformsBrightness and contrast adjustmentssaturate_cast()函数Practice exampleGamma correctionGoalaccess pixel values(得到对应像素点的值)Initialize a matrix wit原创 2020-10-23 21:44:51 · 379 阅读 · 0 评论 -
从头开始opencv(六)——core:Adding two images
从头开始opencv(六)——Adding two imagesGoalTheoryaddWeighted()源码Goalwhat is linear blending and why it is useful;[什么是线性混合,以及它为什么有用]how to add two images using addWrighted()Theoryg(x)=(1−α)f0(x)+αf1(x)g(x)=(1-\alpha)f_0(x)+\alpha f_1(x)g(x)=(1−α)f0(x)+α原创 2020-10-21 21:49:56 · 272 阅读 · 0 评论 -
从头开始opencv(五)——core:operations with images
从头开始opencv(五)——core:operations with imagesInput/OutputBasic operations with imagesAccessing pixel intensity valuesPrimitive operationsInput/OutputBasic operations with imagesAccessing pixel intensity valuesScalar intensity = img.at<uchar>(y, x)原创 2020-10-20 20:06:46 · 199 阅读 · 0 评论 -
从头开始opencv(四)——core:Mask operations on matrices
Mask operations on matricesour test caseThe Basic MethodThe filter2D function Mask operations on matrices are quite simple. The idea is that we recalculate each pixels value in an image according to a mask matrix (also known as kernel). This mask holds原创 2020-10-19 22:00:47 · 297 阅读 · 0 评论 -
从头开始opencv(三)——core:How to scan images, lookup tables and time measurement
从头开始opencv(三)——core:How to scan images, lookup tables and time measurementGoalOur test caseGoalOur test case Let us consider a simple color reduction method. By using the unsigned char C and C++ type for matrix item storing, a channel of pixel may ha原创 2020-10-18 17:12:40 · 435 阅读 · 0 评论 -
从头开始opencv(二)——core:Mat
从头开始opencv(二)——The Core Functionality:MatMat - The Basic Image ContainerGoalMatStoring methodsLoad and Display an ImageLoad, Modify, and Save an ImageCreating a Mat object explicitly参考资料Mat - The Basic Image ContainerGoal 图像在计算机中是以像素点阵的形式进行存储的。Mat原创 2020-10-05 10:57:46 · 548 阅读 · 0 评论 -
从头开始opencv(一)——opencv安装和模块介绍
从头开始opencv(一)一、安装环境介绍二、opencv模块介绍 由于opencv之前就有一直在用,所以安装就不打算再看了,等以后对计算机更为理解了再来看看为什么是这种安装方法吧(先给自己挖一个大坑)。 打算跟着大佬一篇博客一篇博客开始啃。 本文跟着的博客【OpenCV入门教程之二】 一览众山小:OpenCV 2.4.8 or OpenCV 2.4.9组件结构全解析一、安装环境介绍 大佬用的环境是2.4.8,我用的环境是3.4.1(下载链接) 进入\opencv\build\inc原创 2020-10-04 10:29:08 · 187 阅读 · 0 评论