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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from PIL import Image | |
from pylab import * | |
import camera | |
# 画像を読み込む | |
im1 = array(Image.open('images/001.jpg')) | |
im2 = array(Image.open('images/002.jpg')) |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from PIL import Image | |
from pylab import * | |
execfile('load_vggdata.py') | |
# 3D点を同次座標にして射影する | |
X = vstack( (points3D,ones(points3D.shape[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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from pylab import * | |
execfile('load_vggdata.py') | |
# 3Dの点を描画する | |
from mpl_toolkits.mplot3d import axes3d | |
fig = figure() |
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
#coding:UTF-8 | |
import numpy as np | |
import matplotlib.pyplot as pl | |
data = np.loadtxt("result_all.txt") | |
separate1 = 100000 | |
pl.plot(data[:separate1, 1], data[:separate1, 2], 'g', linewidth=10) |
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 <cstdlib> | |
//ワイド文字列からマルチバイト文字列 | |
//ロケール依存 | |
void narrow(const std::wstring &src, std::string &dest) { | |
setlocale(LC_CTYPE, ""); | |
char *mbs = new char[src.length() * MB_CUR_MAX + 1]; | |
wcstombs(mbs, src.c_str(), src.length() * MB_CUR_MAX + 1); | |
dest = mbs; |
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
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
# Offlickr | |
# Hugo Haas <hugo@larve.net> -- http://larve.net/people/hugo/ | |
# Homepage: http://code.google.com/p/offlickr/ | |
# License: GPLv2 | |
# | |
# Daniel Drucker <dmd@3e.org> contributed: | |
# * wget patch | |
# * backup of videos as well |
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
" release autogroup in MyAutoCmd | |
augroup MyAutoCmd | |
autocmd! | |
augroup END | |
"------------------------ | |
"検索関係 | |
"------------------------ | |
set ignorecase " 大文字小文字を区別しない | |
set smartcase |
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
" set showtabline=2 | |
" ツールバーを削除 | |
set guioptions-=T | |
"半角文字の設定 | |
set visualbell t_vb= | |
" ------------------------------------------------------ | |
" colorscheme |
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
# unite {{{ | |
[[plugins]] | |
repository = 'Shougo/unite.vim' | |
[[plugins]] | |
repository = 'Shougo/unite-outline' | |
[[plugins]] | |
repository = 'Shougo/neomru.vim' |
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
# like ide {{{ | |
[[plugins]] | |
repository = 'Shougo/vimfiler' | |
explorer = 1 | |
mappings = '<Plug>' | |
[[plugins]] | |
repository = 'thinca/vim-quickrun' | |
mappings = '<Plug>' |
OlderNewer