admin管理员组

文章数量:1612826

What is Computer Vision?


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

Why computer vision matters

 

Examples of application areas


 

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
 

MobileEye

Open Libraries/projects
 

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

OpenBR

 

http://openbiometrics/

EasyPR

 

http://git.oschina/easypr/EasyPR
 

Opencv安装配置
 

Image Watch
 

https://marketplace.visualstudio/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.

 

认识图像
 

 

 

常用构造函数
 

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

 

#include <opencv.hpp>
#include <iostream>

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