Created
August 14, 2013 03:02
-
-
Save yiling-chen/6227670 to your computer and use it in GitHub Desktop.
Toy example of computing and manipulate integral image by OpenCV.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
using namespace std; | |
using namespace cv; | |
int main(int argc, char *argv[]) { | |
Mat m = Mat::ones(5,5, CV_8UC1); | |
cout << m << endl << endl; | |
Mat integ; | |
integral(m, integ); | |
cout << integ << endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment