OpenCV Tips (@OpenCVTip) profile picture

Infrequent tips on OpenCV.

Joined April 2012
Photo by OpenCV Tips (@OpenCVTip)Photo by OpenCV Tips (@OpenCVTip)
An example usage of parallel_for_() that paints an image to random colors in parallel: gist.github.com/barisdemiroz…
4
6
You can use parallel_for_() to easily parallelize your data processing loops.
3
6
You can initialize/seed RNGs using `state` field. e.g. theRNG().state = getTickCount();
1
You can use theRNG() to access default, thread local random number generator. e.g. float x = theRNG();
1
There is an undocumented TickMeter class to measure elapsed time.
1
2
1
6
OpenCV announces VTK-based 3D visualization module: viz demo: youtube.com/watch?v=75Ytgy3Q… docs: docs.opencv.org/modules/viz/…
6
6
OpenCV Tips retweeted
OpenCV Development Team worked hard in scorching summer heat and has prepared the OpenCV 2.4.6 release for you! opencv.org/opencv-2-4-6-is-o…
1
24
5
Sorry, this time it is not about OpenCV, it is about my home country, Turkey. wrttn.in/129692
OpenCV Tips retweeted
Microsoft released Image Watch, a free Visual Studio extension for viewing in-memory OpenCV images during debugging: opencv.org/image-debugger-pl…
34
21
[tutorial] How to build OpenCV library and debug it in VS2010? anlak.com/build-debug-opencv…
1
1
2
OpenCV Tips retweeted
Try out the beta version of OpenCV 2.4.4. The final 2.4.4 is expected within ~2 weeks. opencv.org/opencv-2-4-4-is-u…
19
3
e.g. rectangle(img, rect, CV_RGB(255,0,0)); // draws a red rectangle.
1
1
As drawing function color parameters, use CV_RGB() macro for clarity instead of Scalar().
A new cv::putText to print text on image in the same way as you print "Hello world!" to std::cout.goo.gl/PeZBF
6
5
You can find the code to produce the image in previous tweet here: pastebin.com/xTw3rSmT
Here you can see how all the available fonts in OpenCV 2.4.3 appear: i.imgur.com/r9Jzu.png
1
You need to know the text size in order to position the text or create an image that's big enough to contain the text...
To write text on an image use putText() docs.opencv.org/modules/core…
1