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
| cmake_minimum_required( VERSION 3.0 ) | |
| project( so-opencv-calibration ) | |
| find_package( OpenCV 3.0.0 EXACT REQUIRED ) | |
| set( INPUT_FILENAME "${CMAKE_CURRENT_LIST_DIR}/input_00.png" ) # Input file, e.g. http://i.stack.imgur.com/WjER0.png | |
| add_executable( mwe mwe.cpp ) | |
| target_compile_definitions( mwe PRIVATE -DINPUT_FILENAME="${INPUT_FILENAME}" ) | |
| target_include_directories( mwe PRIVATE ${OpenCV_INCLUDE_DIRS} ) | |
| target_link_libraries( mwe ${OpenCV_LIBS} ) |
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 <opencv2/core.hpp> | |
| #include <opencv2/highgui.hpp> | |
| #include <opencv2/imgproc.hpp> | |
| #include <iostream> | |
| #include <vector> | |
| int main() | |
| { | |
| using namespace std; |
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
| // For more details see: http://stackoverflow.com/questions/29696805/what-is-the-best-way-to-remove-a-row-or-col-from-a-cv-mat | |
| #include "Timer.h" // http://www.songho.ca/misc/timer/timer.html | |
| #include <opencv2/core/core.hpp> | |
| #include <algorithm> | |
| #include <numeric> | |
| #include <iostream> | |
| #include <cstring> |