opencv_test.cpp
Go to the documentation of this file.
00001 #include <opencv2/core/core.hpp>
00002 #include <opencv2/highgui/highgui.hpp>
00003 
00004 int main(int argc, char** argv)
00005 {
00006   cv::Mat image(80, 100, CV_8UC1);
00007   image.setTo(0);
00008   int r = 26;
00009   int c = 78;
00010   image.at<uchar>(r,c) = 255;
00011   image.at<uchar>(r+2,c) = 255;
00012   cv::namedWindow("Display window", cv::WINDOW_NORMAL); // Create a window for display.
00013   cv::imshow("Display window", image); // Show our image inside it.
00014   cv::waitKey(0); // Wait for a keystroke in the window
00015   return 0;
00016 }


agile_grasp
Author(s): Andreas ten Pas
autogenerated on Sat Jun 8 2019 20:08:27