OpenCV examples

asked 2016-06-06 03:17:30 -0500

VanGog gravatar image

In this tutorial, there is a link to empty file. I cannot find the file and its name. I can make the functions but I am missing the main function code.

I would like to ask one more question. Can you recommend me more examples, which somebody written for public domain using OpenCV? More effects which are not included in tutorials and OpenCV examples? For example I would like to know how to create exactly same effect: also I am interested about reading (analysing of image shapes) so more examples which are not covered but if you know some good stuff to check out. I am using Windows XP and Visual Studio 2010. Thanks

edit retag flag offensive close merge delete


berak gravatar imageberak ( 2016-06-06 03:44:09 -0500 )edit

Thanks. One more question: why in the code there are the & operators? cv::Scalar( icolor&255, (icolor>>8)&255, (icolor>>16)&255 );

VanGog gravatar imageVanGog ( 2016-06-06 06:05:57 -0500 )edit

the &255 operation serves as a mask (it keeps only the lower 8 bit). e.g.

(0x1234 & 255) = 0x0034;
berak gravatar imageberak ( 2016-06-06 06:19:04 -0500 )edit

I see. RND generates one number 0xXXXXXXXX which is icolor. But Scalar has 3-4 inputs (1 byte) so the RND output is taken to be devided to 3x1 byte inputs.

VanGog gravatar imageVanGog ( 2016-06-06 06:59:28 -0500 )edit