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 <sstream> | |
#include <string> | |
#include <vector> | |
#include <map> | |
#include <algorithm> | |
#include <iostream> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cmath> | |
#include <utility> |
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
#!/usr/bin/ruby | |
def toGrayCode(binary) | |
return binary ^ (binary >> 1) | |
end | |
def binaryStr(num) | |
binaryStr = "" | |
while num > 0 | |
binaryStr = String(num & 1) + binaryStr |
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
// filio::output | |
system("mkdir data"); | |
cv::FileStorage cvfs("./data/camera.xml", CV_STORAGE_WRITE); | |
cv::write(cvfs,"intrinsicMat", intrinsic_param_matrix); | |
cv::write(cvfs,"distCoeffs", distortion_coeffs); | |
// fileio::input | |
cv::FileStorage cvfs("./data/camera.xml", CV_STORAGE_READ); | |
cv::FileNode node(cvfs.fs, NULL); | |
cv::Mat in_mat, dist_coeff; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>active background</title> | |
<style> | |
<!-- | |
html body{ | |
background-color: #cccccc; | |
height:100%; | |
} |
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 <cv.h> | |
#include <cxcore.h> | |
#include <highgui.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <iostream> | |
#include <sstream> | |
std::string gen_fpath(int i, std::string ext) | |
{ |
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
CCACHE = #ccache | |
CC = $(CCACHE) g++ -pipe -Wall -fopenmp -g #-pg -g | |
CXX = $(CCACHE) g++ -pipe -Wall -fopenmp -g #-pg -g | |
FC = $(CCACHE) gfortran -pipe -Wall #-pg -g | |
ifndef DEBUG | |
CFLAGS = -g -O3 -mtune=native -msse3 -unroll-all-loops -fstrict-aliasing -ftree-vectorize | |
else | |
CFLAGS = -pg -O0 | |
endif |
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 <boost/program_options.hpp> | |
#include <iostream> | |
int main(int argc, char const* argv[]) | |
{ | |
// add options | |
boost::program_options::options_description cmdline("Command line options"); | |
cmdline.add_options() | |
("help,h", "show help message") | |
("list", "list available cameras") |
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
" URL: http://vim.wikia.com/wiki/Example_vimrc | |
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode | |
" Description: A minimal, but feature rich, example .vimrc. If you are a | |
" newbie, basing your first .vimrc on this file is a good choice. | |
" If you're a more advanced user, building your own .vimrc based | |
" on this file is still a good idea. | |
"------------------------------------------------------------ | |
" Features {{{1 | |
" |
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 "FlyCapture2.h" | |
#include <math.h> | |
#include <stdlib.h> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <cassert> | |
#include <vector> |
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
\documentclass[twocolumn,oneside,a4paper]{jarticle} | |
% ERROR | |
% \usepackage[dvipdfm]{graphicx} | |
\usepackage[dvipdfm]{graphicx} | |
\usepackage{amsmath,amssymb} | |
\title{ほげほげを用いたふがふが推定} | |
\author{へのへのもへじ} | |
\date{\today} |