Created
April 16, 2015 15:15
-
-
Save tibaes/8841d1470fe658ccfdac to your computer and use it in GitHub Desktop.
OpenCV img scan and show lines.
This file contains 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 <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
using namespace cv; | |
int main() { | |
Mat img; | |
img = imread("dave.jpeg", -1); | |
Mat win = Mat::zeros(0, img.rows, CV_8UC3); | |
for (size_t i = 0; i < img.rows; ++i) { | |
win.push_back(img.row(i)); | |
imshow("scan", win); | |
waitKey(100); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment