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 <iostream> | |
#include <opencv2/opencv.hpp> | |
#include <vector> | |
#include <string> | |
using namespace cv; | |
using namespace std; | |
void showUsage() { | |
cout << "this.out [image name]" << endl; |
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 "singleImageCalibration.hpp" | |
int main(int argc, char* argv[]) | |
{ | |
if(argc != 2){ | |
showUsage(); | |
return -1; | |
} | |
string image_name = argv[1]; |
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/opencv.hpp> | |
#include <pcl/common/common_headers.h> | |
#include <pcl/io/pcd_io.h> | |
#include <pcl/point_types.h> | |
#include <pcl/point_cloud.h> | |
#include <pcl/visualization/pcl_visualizer.h> | |
#include <Eigen/Core> | |
#include <Eigen/LU> |
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
# minimum version of CMake | |
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | |
project(triangulation) | |
set(CMAKE_CXX_COMPILER g++) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") |
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 <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <opencv2/opencv.hpp> | |
using namespace std; | |
template <typename T> | |
static float distancePointLine(const cv::Point_<T> point, const cv::Vec<T,3>& line) |
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 <cmath> | |
#include "ceres/ceres.h" | |
#include "glog/logging.h" | |
#include <opencv2/opencv.hpp> | |
using namespace std; | |
using ceres::AutoDiffCostFunction; |
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 <Eigen/Core> | |
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
#include "g2o/stuff/sampler.h" | |
#include "g2o/stuff/command_args.h" | |
#include "g2o/core/sparse_optimizer.h" | |
#include "g2o/core/block_solver.h" | |
#include "g2o/core/solver.h" |
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 <dirent.h> | |
vector<string> readFileInDir(char* path_to_image) { | |
vector<string> paths; | |
DIR* dp=opendir(path_to_image); | |
string s_path_to_image = path_to_image; | |
if (dp!=NULL) | |
{ | |
struct dirent* d; |
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 <iostream> | |
#include <vector> | |
#include <random> | |
#include <cmath> | |
#include <string> | |
#include <fstream> | |
int main(int argc, char* argv[]) { | |
if(argc != 2) { |
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
import os | |
import streams | |
import sequtils | |
import nimPNG, math, tables, base64 | |
import private.buffer | |
import progress | |
const | |
height: int = 32 | |
width: int = 32 |
OlderNewer