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学习机器视觉 学习笔记之 Fundamental of Computer Vision 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1728643285a1167384.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论