ChangeLog

Version 50 (Vadim Pisarevsky, 2015-12-22 07:08 pm)

1 1
h1. OpenCV Change Logs
2 19 Vadim Pisarevsky
3 19 Vadim Pisarevsky
{{>toc}}
4 1
5 50 Vadim Pisarevsky
h2. 2.4.2
6 50 Vadim Pisarevsky
7 50 Vadim Pisarevsky
__July, 2012__
8 50 Vadim Pisarevsky
9 50 Vadim Pisarevsky
* !http://www.ivpe.com/images/freak.jpg! New keypoint descriptor FREAK has been contributed by EPFL group: Kirell Benzi, Raphael Ortiz, Alexandre Alahi and Pierre Vandergheynst. It's claimed to be superior to ORB and SURF descriptors, yet it's very fast (comparable to ORB). Please, see freak_demo.cpp.
10 50 Vadim Pisarevsky
11 50 Vadim Pisarevsky
* Improved face recognizer and excellent tutorial on using it has been added by Philipp Wagner. Check http://docs.opencv.org/modules/contrib/doc/facerec/facerec_tutorial.html
12 50 Vadim Pisarevsky
13 50 Vadim Pisarevsky
   !http://docs.opencv.org/trunk/_images/eigenfaces_opencv.png!
14 50 Vadim Pisarevsky
15 50 Vadim Pisarevsky
* !http://upload.wikimedia.org/wikipedia/ru/thumb/6/6f/Apple_iOS_icon.png/100px-Apple_iOS_icon.png! opencv2.framework for iOS has been created. You can either download the binary from SourceForge or build it yourself using the following simple guide: http://docs.opencv.org/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation. Also, you may be interested to look at some OpenCV on iOS samples, created by our GSoC 2012 students Eduard and Charu: http://code.opencv.org/svn/gsoc2012/ios/trunk and read the slides of the tutorial http://code.opencv.org/svn/gsoc2012/ios/trunk/doc/CVPR2012_OpenCV4IOS_Tutorial.pdf
16 50 Vadim Pisarevsky
17 50 Vadim Pisarevsky
* !http://png-5.findicons.com/files//icons/2232/wireframe_mono/48/bug.png! another 45 bugs have been fixed since 2.4.1 release: http://code.opencv.org/projects/opencv/versions/6
18 50 Vadim Pisarevsky
19 50 Vadim Pisarevsky
* !http://opencv.org/wp-content/themes/opencv/images/logo.png! it's not about the code, but now we have the brand-new user site, http://opencv.org and the new stack overflow-like site with answers to most popular questions http://answers.opencv.org
20 50 Vadim Pisarevsky
21 50 Vadim Pisarevsky
22 50 Vadim Pisarevsky
23 50 Vadim Pisarevsky
24 45 Vadim Pisarevsky
h2. 2.4.1
25 45 Vadim Pisarevsky
26 45 Vadim Pisarevsky
__June, 2012__
27 45 Vadim Pisarevsky
28 46 Vadim Pisarevsky
* The GPU module now supports CUDA 4.1 and CUDA 4.2 and can be compiled with CUDA 5.0 preview.
29 45 Vadim Pisarevsky
30 45 Vadim Pisarevsky
* Added API for storing OpenCV data structures to text string and reading them back:
31 45 Vadim Pisarevsky
<pre><code class="cpp">
32 45 Vadim Pisarevsky
//==== storing data ====
33 45 Vadim Pisarevsky
FileStorage fs(".xml", FileStorage::WRITE + FileStorage::MEMORY);
34 45 Vadim Pisarevsky
fs << "date" << date_string << "mymatrix" << mymatrix;
35 45 Vadim Pisarevsky
string buf = fs.releaseAndGetString();
36 45 Vadim Pisarevsky
37 45 Vadim Pisarevsky
//==== reading it back ====
38 45 Vadim Pisarevsky
FileStorage fs(buf, FileStorage::READ + FileStorage::MEMORY);
39 45 Vadim Pisarevsky
fs["date"] >> date_string;
40 45 Vadim Pisarevsky
fs["mymatrix"] >> mymatrix;
41 45 Vadim Pisarevsky
</code></pre>
42 45 Vadim Pisarevsky
43 46 Vadim Pisarevsky
* "@cv::calcOpticalFlowPyrLK@":http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#calcopticalflowpyrlk now supports precomputed pyramids as input.
44 45 Vadim Pisarevsky
45 45 Vadim Pisarevsky
* Function signatures in documentation are made consistent with source code.
46 45 Vadim Pisarevsky
47 45 Vadim Pisarevsky
* Restored python wrappers for SURF and MSER.
48 45 Vadim Pisarevsky
49 45 Vadim Pisarevsky
* "45 more bugs":http://code.opencv.org/projects/opencv/issues?fixed_version_id=5&set_filter=1&status_id=5 in our bug tracker have been fixed
50 45 Vadim Pisarevsky
51 45 Vadim Pisarevsky
52 42 Vadim Pisarevsky
h2. 2.4.0
53 42 Vadim Pisarevsky
54 42 Vadim Pisarevsky
__May, 2012__
55 42 Vadim Pisarevsky
56 42 Vadim Pisarevsky
The major changes since 2.4 beta
57 42 Vadim Pisarevsky
58 42 Vadim Pisarevsky
* OpenCV now provides pretty complete build information via (surprise) cv::getBuildInformation().
59 42 Vadim Pisarevsky
60 42 Vadim Pisarevsky
* reading/writing video via ffmpeg finally works and it's now available on MacOSX too.
61 43 Vadim Pisarevsky
note 1: we now demand reasonably fresh versions of ffmpeg/libav with libswscale included.
62 43 Vadim Pisarevsky
note 2: if possible, do not read or write more than 1 video simultaneously (even within a single thread) with ffmpeg 0.7.x or earlier versions, since they seem to use some global structures that are destroyed by simultaneously executed codecs. Either build and install a newer ffmpeg (0.10.x is recommended), or serialize your video i/o, or use parallel processes instead of threads.
63 42 Vadim Pisarevsky
64 42 Vadim Pisarevsky
* MOG2 background subtraction by Zoran Zivkovic was optimized using TBB.
65 42 Vadim Pisarevsky
66 42 Vadim Pisarevsky
* The reference manual has been updated to match OpenCV 2.4.0 better (though, not perfectly).
67 42 Vadim Pisarevsky
68 42 Vadim Pisarevsky
* >20 more bugs in our bug tracker have been closed (http://code.opencv.org/projects/opencv/roadmap).
69 43 Vadim Pisarevsky
70 43 Vadim Pisarevsky
* Asus Xtion is now properly supported for HighGUI. For now, you have to manually specify this device by using VideoCapture(CV_CAP_OPENNI_ASUS) instead of VideoCapture(CV_CAP_OPENNI).
71 42 Vadim Pisarevsky
72 42 Vadim Pisarevsky
73 5 Vadim Pisarevsky
h2. 2.4 beta
74 5 Vadim Pisarevsky
75 39 Vadim Pisarevsky
__April, 2012__
76 5 Vadim Pisarevsky
77 8 Vadim Pisarevsky
As usual, we created 2.4 branch in our repository (http://code.opencv.org/svn/opencv/branches/2.4), where we will further stabilize the code. You can check this branch periodically, before as well as after 2.4 release.
78 8 Vadim Pisarevsky
79 5 Vadim Pisarevsky
h3. Common changes
80 5 Vadim Pisarevsky
81 36 Vadim Pisarevsky
* At the age of 12, OpenCV got its own home! http://code.opencv.org is now the primary site for OpenCV development and http://opencv.org (to be launched soon) will be the official OpenCV user site.
82 5 Vadim Pisarevsky
83 36 Vadim Pisarevsky
* Some of the old functionality from the modules @imgproc@, @video@, @calib3d@, @features2d@, @objdetect@ has been moved to legacy.
84 5 Vadim Pisarevsky
85 36 Vadim Pisarevsky
* CMake scripts have been substantially modified. Now it's very easy to add new modules - just put the directory with include, src, doc and test sub-directories to the modules directory, create a very simple @CMakeLists.txt@ and your module will be built as a part of OpenCV. Also, it's possible to exclude certain modules from build (the CMake variables "@BUILD_opencv_<modulename>@" control that).
86 5 Vadim Pisarevsky
87 5 Vadim Pisarevsky
h3. New functionality
88 5 Vadim Pisarevsky
89 21 Vadim Pisarevsky
 * The new very base @cv::Algorithm@ class has been introduced. It's planned to be the base of all the "non-trivial" OpenCV functionality. All Algorithm-based classes have the following features:
90 21 Vadim Pisarevsky
 ** "virtual constructor", i.e. an algorithm instance can be created by name;
91 21 Vadim Pisarevsky
 ** there is a list of available algorithms;
92 21 Vadim Pisarevsky
 ** one can retrieve and set algorithm parameters by name;
93 21 Vadim Pisarevsky
 ** one can save algorithm parameters to XML/YAML file and then load them.
94 5 Vadim Pisarevsky
95 36 Vadim Pisarevsky
* A new ffmpeg wrapper has been created that features multi-threaded decoding, more robust video positioning etc. It's used with ffmpeg starting with 0.7.x versions.
96 5 Vadim Pisarevsky
97 36 Vadim Pisarevsky
* @features2d@ API has been cleaned up. There are no more numerous classes with duplicated functionality. The base classes @FeatureDetector@ and @DescriptorExtractor@ are now derivatives of @cv::Algorithm@. There is also the base @Feature2D@, using which you can detect keypoints and compute the descriptors in a single call. This is also more efficient.
98 5 Vadim Pisarevsky
99 36 Vadim Pisarevsky
* SIFT and SURF have been moved to a separate module named @nonfree@ to indicate possible legal issues of using those algorithms in user applications. Also, SIFT performance has been substantially improved (by factor of 3-4x).
100 5 Vadim Pisarevsky
101 36 Vadim Pisarevsky
* The current state-of-art textureless detection algorithm, Line-Mod by S. Hinterstoisser, has been contributed by Patrick Mihelich. See @objdetect/objdetect.hpp@, class @Detector@.
102 5 Vadim Pisarevsky
103 36 Vadim Pisarevsky
* 3 face recognition algorithms have been contributed by Philipp Wagner. Please, check @opencv/contrib/contrib.hpp@, @FaceRecognizer@ class, and @opencv/samples/cpp/facerec_demo.cpp@.
104 5 Vadim Pisarevsky
105 40 Vadim Pisarevsky
* 2 algorithms for solving PnP problem have been added. Please, check @flags@ parameter in @solvePnP@ and @solvePnPRansac@ functions.
106 40 Vadim Pisarevsky
107 36 Vadim Pisarevsky
* Enhanced @LogPolar@ implementation (that uses Blind-Spot model) has been contributed by Fabio Solari and Manuela Chessa, see @opencv/contrib/contrib.hpp@, @LogPolar_*@ classes and @opencv/samples/cpp/logpolar_bsm.cpp@ sample.
108 5 Vadim Pisarevsky
109 36 Vadim Pisarevsky
* A stub module @photo@ has been created to support a quickly growing "computational photography" area. Currently, it only contains @inpainting@ algorithm, moved from @imgproc@, but it's planned to add much more functionality.
110 5 Vadim Pisarevsky
111 36 Vadim Pisarevsky
* Another module @videostab@ (beta version) has been added that solves a specific yet very important task of video stabilization. The module is under active development. Please, check @opencv/samples/cpp/videostab.cpp@ sample. 
112 5 Vadim Pisarevsky
113 36 Vadim Pisarevsky
* @findContours@ can now find contours on a 32-bit integer image of labels (not only on a black-and-white 8-bit image). This is a step towards more convenient connected component analysis.
114 5 Vadim Pisarevsky
115 36 Vadim Pisarevsky
* @Canny@ edge detector can now be run on color images, which results in better edge maps 
116 16 Vadim Pisarevsky
117 36 Vadim Pisarevsky
* Python bindings can now be used within python threads, so one can write multi-threaded computer vision applications in Python.
118 12 Vadim Pisarevsky
119 5 Vadim Pisarevsky
h3. OpenCV on GPU
120 30 Vadim Pisarevsky
121 30 Vadim Pisarevsky
* Different Optical Flow algorithms have been added:
122 30 Vadim Pisarevsky
** Brox (contributed by NVidia)
123 30 Vadim Pisarevsky
** PyrLK - both Dense and Sparse variations
124 34 Vadim Pisarevsky
** Farneback
125 30 Vadim Pisarevsky
126 30 Vadim Pisarevsky
* New feature detectors and descriptors:
127 1
** @GoodFeaturesToTrack@
128 1
** FAST/ORB which is patent free replacement of SURF.
129 34 Vadim Pisarevsky
130 30 Vadim Pisarevsky
* Overall GPU module enhancements:
131 36 Vadim Pisarevsky
** The module now requires CUDA 4.1 or later;
132 36 Vadim Pisarevsky
** Improved similarity of results between CPU and GPU;
133 36 Vadim Pisarevsky
** Added border extrapolation support for many functions;
134 30 Vadim Pisarevsky
** Improved performance.
135 30 Vadim Pisarevsky
136 30 Vadim Pisarevsky
* @pyrUp@/@pyrDown@ implementations.
137 30 Vadim Pisarevsky
138 1
* Matrix multiplication on GPU (wrapper for the CUBLAS library). This is optional, user need to compile OpenCV with CUBLAS support.
139 1
140 30 Vadim Pisarevsky
* @OpenGL back-end@ has been implemented for @highgui@  module, that allows to display @GpuMat@ directly without downloading them to CPU.
141 30 Vadim Pisarevsky
142 39 Vadim Pisarevsky
h3. OpenCV4Android
143 35 Vadim Pisarevsky
144 39 Vadim Pisarevsky
See the [[Android Release Notes]].
145 1
146 35 Vadim Pisarevsky
h3. Performance
147 1
148 16 Vadim Pisarevsky
* A few OpenCV functions, like color conversion, morphology, data type conversions, brute-force feature matcher have been optimized using TBB and/or SSE intrinisics.
149 36 Vadim Pisarevsky
150 1
* Along with regression tests, now many OpenCV functions have got performance tests. Now for most modules one can build @opencv_perf_<modulename>@ executables that run various functions from the particular module and produce a XML file. Note that if you want to run those tests, as well as the normal regression tests, you will need to get (a rather big) http://code.opencv.org/svn/opencv/trunk/opencv_extra directory and set environment variable @OPENCV_TEST_DATA_PATH@ to "@<your_copy_of_opencv_extra>/testdata@".
151 36 Vadim Pisarevsky
152 39 Vadim Pisarevsky
h3. Bug fixes
153 1
154 1
* In this version we fixed literally hundreds of bugs. Please, check http://code.opencv.org/projects/opencv/versions/1 for a list of fixed bugs.
155 1
156 39 Vadim Pisarevsky
h3. Known issues
157 1
158 1
* When OpenCV is built statically, dynamically created classes (via @Algorithm::create@) can fail because linker excludes the "unused" object files. To avoid this problem, create classes explicitly, e.g
159 1
160 36 Vadim Pisarevsky
 <pre><code class="cpp">Ptr<DescriptorExtractor> d = new BriefDescriptorExtractor;</code></pre>
161 8 Vadim Pisarevsky
162 1
h2. 2.3.1
163 1
164 39 Vadim Pisarevsky
__August, 2011__
165 1
166 39 Vadim Pisarevsky
h3. OpenCV4Android
167 23 Vadim Pisarevsky
168 1
OpenCV Java bindings for Android platform are released in ''Beta 2'' quality. A lot of work is done to make them more stable and easier to use. Currently Java API has about 700 different OpenCV functions and covers 8 OpenCV modules including full port of features2d.
169 1
170 1
h3. Other New Functionality and Features
171 1
172 36 Vadim Pisarevsky
* Retina module has been contributed by Alexandre Benoit (in @opencv_contrib@ module). See the new retina sample and https://sites.google.com/site/benoitalexandrevision/.
173 1
174 36 Vadim Pisarevsky
* Support for Ximea cameras (http://www.ximea.com/) in @highgui@ has been contributed by Ximea developers.
175 1
176 36 Vadim Pisarevsky
* Planar subdivisions construction (Delaunay triangulation and Voronoi tessellation) have been ported to C++. See the new @delaunay2.cpp@ sample.
177 1
178 36 Vadim Pisarevsky
* Several new Python samples have been added.
179 1
180 36 Vadim Pisarevsky
* @FLANN@ in OpenCV has been upgraded to v1.6. Also, added Python bindings for @FLANN@.
181 1
182 1
* We now support the latest FFMPEG (0.8.x) that features multi-threaded decoding. Reading videos in OpenCV has never been that fast.
183 36 Vadim Pisarevsky
184 1
h3. Documentation
185 1
186 1
* Quite a few new tutorials have been added. Check http://opencv.itseez.com/trunk for the up-to-date documentation.
187 36 Vadim Pisarevsky
188 1
h3. Optimization
189 1
190 1
* Performance of the sparse Lucas-Kanade optical flow has been greatly improved. On 4-core machine it is now 9x faster than the previous version.
191 1
192 1
h3. Bug Fixes
193 1
194 36 Vadim Pisarevsky
* Over 100 issues have been resolved since 2.3 release. Most of the issues (closed and still open) are listed at http://code.opencv.org/projects/opencv/issues?set_filter=1.
195 1
196 44 Vadim Pisarevsky
h3. Known issues
197 44 Vadim Pisarevsky
198 44 Vadim Pisarevsky
* TBB debug binaries are missed in the Windows installer. Here is a workaround:
199 44 Vadim Pisarevsky
** Download @tbb30_20110427oss_win.zip@ from the "TBB website":http://threadingbuildingblocks.org/ver.php?fid=171.
200 44 Vadim Pisarevsky
** Unzip and copy the @tbb*_debug.dll@ files from _bin/<ARCH>/<COMPILER>_ to the corresponding folder in the installed OpenCV location in _<OPENCVCV_ROOT>/build/common/tbb/<ARCH>/<COMPILER>_
201 44 Vadim Pisarevsky
202 1
h2. 2.3
203 1
204 39 Vadim Pisarevsky
__July, 2011__
205 1
206 1
h3. Modifications and Improvements since 2.3rc
207 1
208 36 Vadim Pisarevsky
* A few more bugs reported in the OpenCV bug tracker have been fixed.
209 1
210 36 Vadim Pisarevsky
* Documentation has been improved a lot! The new reference manual combines information for C++ and C interfaces, the OpenCV 1.x-style Python bindings and the new C++-style Python bindings. It has also been thoroughly checked for grammar, style and completeness.
211 1
212 1
  Besides, there are new and updated tutorials.
213 36 Vadim Pisarevsky
214 1
  The up-to-date online documentation is available at http://opencv.itseez.com.
215 36 Vadim Pisarevsky
216 1
* The new binary package includes various pre-compiled libs:
217 36 Vadim Pisarevsky
   https://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.3/
218 36 Vadim Pisarevsky
219 1
   Unfortunately, it's not a full-scale installation package, but simply a self-extracting archive with a @readme.txt@ supplied.
220 36 Vadim Pisarevsky
   The installation package is probably to come in the next version.
221 4 Vadim Pisarevsky
222 36 Vadim Pisarevsky
* VS2005 should build OpenCV 2.3 out of the box, including @DirectShow@ support.
223 1
224 36 Vadim Pisarevsky
* ffmpeg bindings are now available for all Windows users via compiler- and configuration- and
225 1
    version-independent @opencv_ffmpeg.dll@ (for 32-bit compilers) and @opencv_ffmpeg_64.dll@ (for 64-bit compilers).
226 1
227 1
h2. 2.3rc
228 35 Vadim Pisarevsky
229 39 Vadim Pisarevsky
__June, 2011__
230 1
231 1
h3. General Modifications and Improvements
232 1
233 36 Vadim Pisarevsky
* Buildbot-based Continuous Integration system is now continuously testing OpenCV snapshots. The status is available at http://buildbot.itseez.com
234 1
235 36 Vadim Pisarevsky
* OpenCV switched to Google Test (http://code.google.com/p/googletest/) engine for regression and correctness tests. Each module now has test sub-directory with the tests.
236 1
237 36 Vadim Pisarevsky
238 1
h3. New Functionality, Features
239 1
240 36 Vadim Pisarevsky
* Many functions and methods now take @InputArray@/@OutputArray@ instead of @cv::Mat@ references. It retains compatibility with the existing code and yet brings more natural support for STL vectors and potentially other "foreign" data structures to OpenCV. See http://opencv.itseez.com/modules/core/doc/intro.html#inputarray-and-outputarray for details.
241 1
242 36 Vadim Pisarevsky
* @core@
243 36 Vadim Pisarevsky
** @LAPACK@ is not used by OpenCV anymore. The change decreased the library footprint and the compile time. We now use our own implementation of Jacobi SVD. SVD performance on small matrices (2x2 to 10x10) has been greatly improved; on larger matrices it is still pretty good. SVD accuracy on poorly-conditioned matrices has also been improved.
244 36 Vadim Pisarevsky
** Arithmetic operations now support mixed-type operands and arbitrary number of channels.
245 1
246 36 Vadim Pisarevsky
* @features2d@
247 36 Vadim Pisarevsky
** Completely new patent-free @BRIEF@ and @ORB@ feature descriptors have been added.
248 36 Vadim Pisarevsky
** Very fast LSH matcher for @BRIEF@ and @ORB@ descriptors will be added in 2.3.1.
249 1
250 36 Vadim Pisarevsky
* @calib3d@
251 36 Vadim Pisarevsky
** A new calibration pattern, "circles grid":http://code.opencv.org/svn/opencv/branches/2.3/opencv/doc/acircles_pattern.png, has been added. See findCirclesGrid() function and the updated calibration.cpp sample. With the new pattern calibration accuracy is usually much higher.
252 24 Vadim Pisarevsky
253 36 Vadim Pisarevsky
* @highgui@
254 36 Vadim Pisarevsky
** [Windows] @videoInput@ is now a part of @highgui@. If there are any problems with compiling @highgui@, set @WITH_VIDEOINPUT=OFF@ in CMake.
255 1
256 36 Vadim Pisarevsky
* @stitching@
257 36 Vadim Pisarevsky
** @opencv_stitching@ is a beta version of new application that makes a panorama out of a set of photos taken from the same point.
258 1
259 36 Vadim Pisarevsky
* @python@
260 36 Vadim Pisarevsky
** Now there are 2 extension modules: @cv@ and @cv2@. @cv2@ includes wrappers for OpenCV 2.x functionality. @opencv/samples/python2@ contain a few samples demonstrating @cv2@ in use.
261 1
262 36 Vadim Pisarevsky
* @contrib@
263 38 Vadim Pisarevsky
** A new experimental variational stereo correspondence algorithm @StereoVar@ has been added.
264 1
265 36 Vadim Pisarevsky
* @gpu@
266 36 Vadim Pisarevsky
** the module now requires CUDA 4.0 or later; Many improvements and bug fixes have been made.
267 1
268 36 Vadim Pisarevsky
h3. Android port
269 1
270 38 Vadim Pisarevsky
* With support from NVIDIA, OpenCV Android port (which is actually not a separate branch of OpenCV, it's the same code tree with additional build scripts) has been greatly improved, a few demos developed. Camera support has been added as well.
271 38 Vadim Pisarevsky
  See [[Android Release Notes#231-beta1]] for details.
272 1
273 36 Vadim Pisarevsky
h3. Documentation
274 1
275 36 Vadim Pisarevsky
* OpenCV documentation is now written in @ReStructured Text@ and built using @Sphinx@ (http://sphinx.pocoo.org).
276 1
277 36 Vadim Pisarevsky
* It's not a single reference manual now, it's 4 reference manuals (OpenCV 2.x C++ API, OpenCV 2.x Python API, OpenCV 1.x C API, OpenCV 1.x Python API), the emerging user guide and a set of tutorials for beginners.
278 1
279 36 Vadim Pisarevsky
* Style and grammar of the main reference manual (OpenCV 2.x C++ API) have been thoroughly checked and fixed.
280 1
281 36 Vadim Pisarevsky
* Online up-to-date version of the manual is available at http://opencv.itseez.com
282 1
283 1
284 1
h3. Samples
285 1
286 36 Vadim Pisarevsky
* Several samples using the new Python bindings (cv2 module) have been added: http://code.opencv.org/svn/opencv/branches/2.3/opencv/samples/python2
287 1
288 1
289 1
h3. Optimization
290 1
291 1
* Several ML algorithms have been threaded using TBB.
292 36 Vadim Pisarevsky
293 1
h3. Bug Fixes
294 1
295 1
* Over 250 issues have been resolved. Most of the issues (closed and still open) are listed at http://code.opencv.org/projects/opencv/issues?set_filter=1.
296 36 Vadim Pisarevsky
297 1
h3. Known Problems/Limitations
298 1
299 36 Vadim Pisarevsky
* Documentation (especially on the new Python bindings) is still being updated. Watch http://opencv.itseez.com for updates.
300 1
301 36 Vadim Pisarevsky
* Android port does not provide Java interface for OpenCV. It is going to be added to "2.3 branch":http://code.opencv.org/svn/opencv/branches/2.3/opencv in a few weeks.
302 2 Vadim Pisarevsky
303 1
304 1
h2. 2.2
305 1
306 39 Vadim Pisarevsky
__December, 2010__
307 1
308 1
h3. General Modifications and Improvements
309 1
310 37 Vadim Pisarevsky
* The library has been reorganized. Instead of @cxcore@, @cv@, @cvaux@, @highgui@ and @ml@ we now have several smaller modules:
311 37 Vadim Pisarevsky
** @opencv_core@ - core functionality (basic structures, arithmetics and linear algebra, dft, XML and YAML I/O ...).
312 37 Vadim Pisarevsky
** @opencv_imgproc@ - image processing (@filter@, @GaussianBlur@, @erode@, @dilate@, @resize@, @remap@, @cvtColor@, @calcHist@ etc.)
313 37 Vadim Pisarevsky
** @opencv_highgui@ - GUI and image & video I/O
314 37 Vadim Pisarevsky
** @opencv_ml@ - statistical machine learning models (SVM, Decision Trees, Boosting etc.)
315 37 Vadim Pisarevsky
** @opencv_features2d@ - 2D feature detectors and descriptors (SURF, FAST etc., including the new feature detectors-descriptor-matcher framework)
316 37 Vadim Pisarevsky
** @opencv_video@ - motion analysis and object tracking (optical flow, motion templates, background subtraction)
317 37 Vadim Pisarevsky
** @opencv_objdetect@ - object detection in images (Haar & LBP face detectors, HOG people detector etc.)
318 37 Vadim Pisarevsky
** @opencv_calib3d@ - camera calibration, stereo correspondence and elements of 3D data processing
319 37 Vadim Pisarevsky
** @opencv_flann@ - the Fast Library for Approximate Nearest Neighbors (@FLANN@ 1.5) and the OpenCV wrappers
320 37 Vadim Pisarevsky
** @opencv_contrib@ - contributed code that is not mature enough
321 37 Vadim Pisarevsky
** @opencv_legacy@ - obsolete code, preserved for backward compatibility
322 37 Vadim Pisarevsky
** @opencv_gpu@ - acceleration of some OpenCV functionality using @CUDA@ (relatively unstable, yet very actively developed part of OpenCV)
323 1
324 1
If you detected OpenCV and configured your make scripts using CMake or pkg-config tool, your code will likely build fine without any changes. Otherwise, you will need to modify linker parameters (change the library names) and update the include paths.
325 1
326 37 Vadim Pisarevsky
It is still possible to use @#include <cv.h>@ etc. but the recommended notation is:
327 1
328 37 Vadim Pisarevsky
<pre><code class="cpp">
329 37 Vadim Pisarevsky
#include "opencv2/imgproc/imgproc.hpp"
330 37 Vadim Pisarevsky
...
331 37 Vadim Pisarevsky
</code></pre>
332 1
333 1
Please, check the new C and C++ samples (http://code.opencv.org/svn/opencv/trunk/opencv/samples), which now include the new-style headers.
334 1
335 37 Vadim Pisarevsky
* The new-style wrappers now cover much more of OpenCV 2.x API. The documentation and samples are to be added later. You will need numpy in order to use the extra added functionality.
336 37 Vadim Pisarevsky
   SWIG-based Python wrappers are not included anymore.
337 28 Vadim Pisarevsky
338 37 Vadim Pisarevsky
* OpenCV can now be built for Android (GSoC 2010 project), thanks to Ethan Rublee; and there are some samples too. Please, check [[OpenCV4Android]]
339 28 Vadim Pisarevsky
340 37 Vadim Pisarevsky
* The completely new @opencv_gpu@ acceleration module has been created with support by NVIDIA. See below for details.
341 1
342 1
343 28 Vadim Pisarevsky
h3. New Functionality, Features
344 28 Vadim Pisarevsky
345 37 Vadim Pisarevsky
* @core@
346 37 Vadim Pisarevsky
** The new @cv::Matx<T, m, n>@ type for fixed-type fixed-size matrices has been added. @Vec<T, n>@ is now derived from @Matx<T, n, 1>@. The class can be used for very small matrices, where @cv::Mat@ use implies too much overhead. The operators to convert @Matx@ to @Mat@ and backwards are available.
347 37 Vadim Pisarevsky
** @cv::Mat@ and @cv::MatND@ are made the same type: @typedef cv::Mat cv::MatND@.
348 37 Vadim Pisarevsky
    Note that many functions do not check the matrix dimensionality yet, so be careful when processing 3-, 4- ... dimensional matrices using OpenCV.
349 37 Vadim Pisarevsky
** Experimental support for Eigen 2.x/3.x is added (@WITH_EIGEN2@ option in CMake). Again, there are convertors from Eigen2 matrices to @cv::Mat@ and backwards. See @modules/core/include/opencv2/core/eigen.hpp@.
350 37 Vadim Pisarevsky
** @cv::Mat@ can now be print with "@<<@" operator. See @opencv/samples/cpp/cout_mat.cpp@.
351 37 Vadim Pisarevsky
** @cv::exp@ and @cv::log@ are now much faster thanks to SSE2 optimization.
352 1
353 37 Vadim Pisarevsky
* @imgproc@
354 37 Vadim Pisarevsky
** color conversion functions have been rewritten;
355 37 Vadim Pisarevsky
** RGB->Lab & RGB->Luv performance has been noticeably improved. Now the functions assume sRGB input color space (e.g. gamma=2.2). If you want the original linear RGB->L** conversion (i.e. with gamma=1), use @CV_LBGR2LAB@ etc.
356 37 Vadim Pisarevsky
** VNG algorithm for Bayer->RGB conversion has been added. It's much slower than the simple interpolation algorithm, but returns significantly more detailed images
357 37 Vadim Pisarevsky
** The new flavors of RGB->HSV/HLS conversion functions have been added for 8-bit images. They use the whole 0..255 range for the H channel instead of 0..179. The conversion codes are @CV_RGB2HSV_FULL@ etc.
358 37 Vadim Pisarevsky
** special variant of @initUndistortRectifyMap@ for wide-angle cameras has been added: @initWideAngleProjMap()@
359 1
360 37 Vadim Pisarevsky
* @features2d@
361 37 Vadim Pisarevsky
** the unified framework for keypoint extraction, computing the descriptors and matching them has been introduced. The previously available and some new detectors and descriptors, like @SURF@, @FAST@, @StarDetector@ etc. have been wrapped to be used through the framework. The key advantage of the new framework (besides the uniform API for different detectors and descriptors) is that it also provides high-level tools for image matching and textured object detection. Please, see documentation http://opencv.itseez.com/modules/features2d/doc/common_interfaces_of_feature_detectors.html
362 1
      and the C++ samples:
363 37 Vadim Pisarevsky
*** @descriptor_extractor_matcher.cpp@ - finding object in a scene using keypoints and their descriptors.
364 37 Vadim Pisarevsky
*** @generic_descriptor_matcher.cpp@ - variation of the above sample where the descriptors do not have to be computed explicitly.
365 37 Vadim Pisarevsky
*** @bagofwords_classification.cpp@ - example of extending the framework and using it to process data from the VOC databases: http://pascallin.ecs.soton.ac.uk/challenges/VOC/
366 37 Vadim Pisarevsky
** the newest super-fast keypoint descriptor BRIEF by Michael Calonder has been integrated by Ethan Rublee. See the sample @opencv/samples/cpp/video_homography.cpp@
367 37 Vadim Pisarevsky
** SURF keypoint detector has been parallelized using TBB (the patch is by imahon and yvo2m)
368 1
369 37 Vadim Pisarevsky
* @objdetect@
370 37 Vadim Pisarevsky
** LatentSVM object detector, implementing P. Felzenszwalb algorithm, has been contributed by Nizhniy Novgorod State University (NNSU) team. See @opencv/samples/c/latentsvmdetect.cpp@
371 1
372 37 Vadim Pisarevsky
* @calib3d@
373 37 Vadim Pisarevsky
** The new rational distortion model:
374 1
375 37 Vadim Pisarevsky
    @x' = x * (1@ + @k@~1~ * @r@^2^ + @k@~2~ * @r@^4^ + @k@~3~ * @r@^6^@)/(1@ + @k@~4~ * @r@^2^ + @k@~5~ * @r@^4^ + @k@~6~ * @r@^6^@) +@ _<tangential_distortion for @x@>_,
376 37 Vadim Pisarevsky
    @y' = y * (1@ + @k@~1~ * @r@^2^ + @k@~2~ * @r@^4^ + @k@~3~ * @r@^6^@)/(1@ + @k@~4~ * @r@^2^ + @k@~5~ * @r@^4^ + @k@~6~ * @r@^6^@) +@ _<tangential_distortion for @y@>_
377 1
378 37 Vadim Pisarevsky
    has been introduced. It is useful for calibration of cameras with wide-angle lenses. 
379 37 Vadim Pisarevsky
    Because of the increased number of parameters to optimize you need to supply more data to robustly estimate all of them. Or, simply initialize the distortion vectors with zeros and pass @CV_CALIB_RATIONAL_MODEL@ to enable the new model @CV_CALIB_FIX_K3 + CV_CALIB_FIX_K4 + CV_CALIB_FIX_K5@ or other such combinations to selectively enable or disable certain coefficients.
380 37 Vadim Pisarevsky
** rectification of trinocular camera setup, where all 3 heads are on the same line, is added. see @samples/cpp/3calibration.cpp@
381 1
382 37 Vadim Pisarevsky
* @ml@
383 37 Vadim Pisarevsky
** Gradient boosting trees model has been contributed by NNSU team.
384 1
385 37 Vadim Pisarevsky
* @highgui@
386 37 Vadim Pisarevsky
** Experimental Qt backend for OpenCV has been added as a result of GSoC 2010 project, completed by Yannick Verdie. The backend has a few extra features, not present in the other backends, like text rendering using TTF fonts, separate "control panel" with sliders, push-buttons, checkboxes and radio buttons, interactive zooming, panning of the images displayed in @highgui@ windows, "save as" etc. Please, check the youtube videos where Yannick demonstrates the new features: http://www.youtube.com/user/MrFrenchCookie#p/u
387 37 Vadim Pisarevsky
** The new API is described here: http://opencv.itseez.com/modules/highgui/doc/qt_new_functions.html To make use of the new API, you need to have Qt SDK (or @libqt4@ with development packages) installed on your machine, and build OpenCV with Qt support (pass @-DWITH_QT=ON@ to CMake; watch the output, make sure Qt is used as GUI backend)
388 37 Vadim Pisarevsky
** 16-bit and LZW-compressed TIFFs are now supported.
389 37 Vadim Pisarevsky
** You can now set the mode for IEEE1394 cameras on Linux.
390 1
391 37 Vadim Pisarevsky
* @contrib@
392 37 Vadim Pisarevsky
** Chamfer matching algorithm has been contributed by Marius Muja, Antonella Cascitelli, Marco Di Stefano and Stefano Fabri. See @samples/cpp/chamfer.cpp@
393 1
394 37 Vadim Pisarevsky
* @gpu@
395 37 Vadim Pisarevsky
    This is completely new part of OpenCV, created with the support by NVIDIA.
396 1
    Note that the package is at alpha, probably early beta state, so use it with care and check OpenCV SVN for updates.
397 1
398 1
    In order to use it, you need to have the latest NVidia CUDA SDK installed, and build OpenCV with CUDA support (@-DWITH_CUDA=ON@ CMake flag).
399 1
400 37 Vadim Pisarevsky
    All the functionality is put to @cv::gpu@ namespace. The full list of functions and classes can be found at
401 37 Vadim Pisarevsky
    @opencv/modules/gpu/include/opencv2/gpu/gpu.hpp@, and here are some major components of the API:
402 37 Vadim Pisarevsky
** image arithmetics, filtering operations, morphology, geometrical transformations, histograms
403 37 Vadim Pisarevsky
** 3 stereo correspondence algorithms: Block Matching, Belief Propagation and Constant-Space Belief Propagation.
404 37 Vadim Pisarevsky
** HOG-based object detector. It runs more than order of magnitude faster than the CPU version!
405 37 Vadim Pisarevsky
    See @opencv/samples/gpu@
406 10 Vadim Pisarevsky
407 37 Vadim Pisarevsky
* @python@ bindings
408 37 Vadim Pisarevsky
  A lot more of OpenCV 2.x functionality is now covered by Python bindings.
409 28 Vadim Pisarevsky
410 37 Vadim Pisarevsky
  These new wrappers require @numpy@ to be installed
411 37 Vadim Pisarevsky
  (see http://opencv.willowgarage.com/wiki/InstallGuide for details).
412 1
413 37 Vadim Pisarevsky
  Likewise the C++ API, in the new Python bindings you do not need to allocate output arrays.
414 37 Vadim Pisarevsky
  They will be automatically created by the functions.
415 1
416 37 Vadim Pisarevsky
  Here is a micro example:
417 1
418 37 Vadim Pisarevsky
  <pre><code class="python">
419 37 Vadim Pisarevsky
  import cv
420 1
421 37 Vadim Pisarevsky
  a=cv.imread("lena.jpg",0)
422 37 Vadim Pisarevsky
  b=cv.canny(a, 50, 100, apertureSize=3)
423 37 Vadim Pisarevsky
  cv.imshow("test",b)
424 37 Vadim Pisarevsky
  cv.waitKey(0)</code></pre>
425 1
426 37 Vadim Pisarevsky
  In the sample @a@ and @b@ are normal @numpy@ arrays, so the whole power of @numpy@ and @scipy@ can now be combined with OpenCV functionality.
427 1
428 1
h3. Documentation, Samples
429 1
430 37 Vadim Pisarevsky
* Links to wiki pages (mostly empty) have been added to each function description, see http://opencv.willowgarage.com
431 1
432 37 Vadim Pisarevsky
* All the samples have been documented with default output ''(0 or incomplete number of parameters)'' set to print out "howto" run instructions [Gary]; most samples have been converted to C++ to use the new OpenCV API.
433 37 Vadim Pisarevsky
434 1
h3. Bug Fixes
435 1
436 37 Vadim Pisarevsky
* Over 300 issues have been resolved. Most of the issues (closed and still open) are listed at http://code.opencv.org/projects/opencv/issues?set_filter=1
437 1
438 37 Vadim Pisarevsky
* The old bug tracker at https://sourceforge.net/projects/opencvlibrary/ is now closed for updates. As soon as all the still relevant bug reports will be moved to code.ros.org, the old bug tracker will be completely deleted. Please, use the new tracker from now on.
439 1
440 1
h3. Known Problems/Limitations
441 1
442 37 Vadim Pisarevsky
* Installation package for Windows is still 32-bit only and does not include TBB support. You can build parallel or 64-bit version of OpenCV from the source code.
443 47 Vadim Pisarevsky
444 49 Vadim Pisarevsky
h2. Previous versions
445 47 Vadim Pisarevsky
446 47 Vadim Pisarevsky
[[ChangeLogHistory_before_v21]]