Intro To The Opencv Library: For Tu Dresden Computer Vision 2 Lecture and General Use
Intro To The Opencv Library: For Tu Dresden Computer Vision 2 Lecture and General Use
1.Why
2.What
3.Install
4.Example Project
5.Your Task
6.Your Questions → in Opal forum
2001: Intel → open src, 2008: Willow Garage, itSeez, 2010: Nvidia,
2016: Intel buys itSeez, Machine Learning rise (people move from cv to ml)
How to scan images, lookup tables and time measurement with OpenCV
Basic Drawing
objdetect:
Cascade Classifier
Create a 2D-Gaussian:
Mat Gauss2D = Mat::zeros(TemplateWidth, TemplateWidth,
CV_32FC1);
Gauss2D.at<float>( TemplateHW, TemplateHW) = 1.0;
GaussianBlur(Gauss2D, Gauss2D, Size(TemplateWidth,
TemplateWidth), sigma, sigma);
(1)
int** iim = new int*[h];
for (y=0; y<h; y++)
{ iim[y] = IntegralImg.ptr<int>(y);
}
int diffy = 2*( iim[y][x+dx] - iim[y][x-dx] ) +
iim[y-dy][x-dx] - iim[y-dy][x+dx] +
iim[y+dy][x-dx] – iim[y+dy][x+dx];
(2)
float *pCR, *pCRData = (float*) CorrResult.data;
*pCR = pCRData + y*w;
for ( int x = TemplateWidth; x < w-TemplateWidth; x++ )
{ pCR[x] = ssd; // write ssd result to result image
}
1. Home: opencv.org
2. Documentation: docs.opencv.org
3. Q&A forum: answers.opencv.org
4. Report issues: github.com/opencv/opencv/issues
5. Develop: github.com/opencv/opencv