七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision

What is Computer Vision?


Goal of computer vision is to write computer programs that can interpret images.

Why computer vision matters

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第1张图片

 

Examples of application areas


七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第2张图片

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第3张图片

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第4张图片

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第5张图片

 

Applications
 

Geometric reconstruction: modeling, forensics,
special effects (ILM, RealVis)
• Image and video editing (Avid, Adobe)
• Scientific / medical applications (GE)

Tracking and surveillance (Sarnoff)
• Fingerprint recognition (Digital Persona)
• Biometrics / iris scans (Iridian Technologies)
• Vehicle safety (MobilEye)
• Optical motion capture (Vicon)


Vicon
 

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第6张图片

MobileEye
七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第7张图片

Open Libraries/projects
 

OpenCV http://opencv.org/
 C++, C, Python and Java interfaces
 Windows, Linux, Mac OS, iOS and Android
HALCON http://www.halcon.com/
 Easy programming in C++, C, C# or VB.NET
 Available for Windows, Linux, Mac OS
 

OpenBR

 

http://openbiometrics.org/
七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第8张图片

EasyPR

 

http://git.oschina.net/easypr/EasyPR
 

Opencv安装配置
 

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第9张图片

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第10张图片

Image Watch
 

https://marketplace.visualstudio.com/items?itemName=VisualCPPTeam.ImageWatch

Image Watch is a watch window for viewing in-memory bitmaps when debugging native C++ code. 

The current version (release notes)has built-in support for OpenCV image types (cv::Mat, cv::Mat_<>, CvMat, _IplImage). To enable user-defined image types please refer to the Image Watch documentation.

 

认识图像
 

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第11张图片

 

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第12张图片

 

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第13张图片

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第14张图片

 

常用构造函数
 

MAT

 Mat::Mat()
 Mat::Mat(int rows, int cols, int type)
 Mat::Mat(Size size, int type)
 Mat::Mat(int rows, int cols, int type, const Scalar& s)
 Mat::Mat(Size size, int type, const Scalar& s)
 Mat::Mat(const Mat& m)
 Mat::Mat(int rows, int cols, int type, void* data, size_t
step=AUTO_STEP)
 Mat::Mat(Size size, int type, void* data, size_t step=AUTO_STEP)
 Mat::Mat(const Mat& m, const Range& rowRange, const Range&
colRange)
 Mat::Mat(const Mat& m, const Rect& roi)


全是浅copy

 

ROI

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第15张图片

 

#include 
#include 

using namespace std;
using namespace cv;

void main()
{
	Mat image = imread("book.jpg");
	Mat imags;
	Mat image2= image;

	Mat M(3,  2,  CV_8UC3, Scalar(0, 0, 225));
	Rect rect(100, 100, 200, 200);
	Mat roi = Mat(image, rect);
	imshow("roi", roi);

	imshow("books", image);
	waitKey();


}

 

Mat的赋值和拷贝问题
 

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第16张图片

 

七月在线Opencv学习机器视觉 学习笔记之 Fundamental of Computer Vision_第17张图片

 

你可能感兴趣的:(机器视觉与图形图像,Opencv/Halcon)