OpenCV examples

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

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.

http://docs.opencv.org/3.1.0/df/d61/t...

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: https://en.wikipedia.org/wiki/Sobel_o... 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

Comments

berak gravatar imageberak ( 2016-06-06 03:44:09 -0600 )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 -0600 )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 -0600 )edit
1

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 -0600 )edit