9. OpenCVの歴史 9
OpenCV Started
Alpha Release at CVPR 2000. Windows only.
Beta 1. Linux support
Release 1.0 Release 1.1
Release 2.0. C++
Release 2.1. Full Python support
Release 2.4 LTS
Release 2.2. Android Support
Release 3.0
Refactored
Willow
Support
OpenCV
Foundation
Intel
Support
Google Summer of
Code
Nvidia
Support
Renewed
Intel Support
Release 2.3. GPU Support. Modules
Magic Leap
Development
team has moved
to Itseez
33. ArUco: a minimal library for Augmented
Reality applications based on OpenCV
OpenCVベースのシンプルなARツール
ARマーカー (aruco) 33
https://www.youtube.com/watch?v=CzD48UkGsK8
49. オートバッファ
–Mallocよりも100倍速い(時もある)
–型安全でクロスプラットフォームなalloca
–バッファは,関数内のスコープでのみ有効
alloca + malloc = AutoBuffer<> 49
using namespace cv;
void foo()
{
AutoBuffer<float> buf;
…
buf.allocate(n); // allocate buffer for n floats on stack or, if n is big, on the heap
float* bufptr = buf;
…
} // buf is invalid at this point
…
AutoBuffer<float, 100> buf(n); // allocate on stack if n<=100
…
閾値を用いて,ヒープとスタックを切り替えてもOK
55. "We should forget about small efficiencies, say about 97% of the time:
premature optimization is the root of all evil. Yet we should not pass up
our opportunities in that critical 3%”
Donald Knuth
… especially when you are doing computer vision on a cell phone
OpenCV team
Questions?
CVPR 2015チュートリアルより