Skip to content

Instantly share code, notes, and snippets.

FOV = 90.0
plane_depth = DepthConversion(depth, FOV)
plt.imshow(applyColorMap(plane_depth))
H, W = depth.shape
x = np.arange(W)
y = H / 2
plt.plot(x, depth[y,x],label='distance from camera center')
plt.plot(x, plane_depth[y,x],label='distance from camera plane')
plt.legend()
@mayosuke
mayosuke / copy-to-clipboard-as-md-link-bookmarklet.md
Last active March 1, 2019 10:40 — forked from stefanmaric/copy-to-clipboard-bookmarklet.md
Create Bookmarklet (browser bookmark that executes Javsacript) to copy a browser window's page title and URL as markdown link style to a clipboard
[user]
name = Yosuke MIYAJIMA
email = mayo.suke@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore_global
autocrlf = false
[merge]
tool = vimdiff
[diff]
@mayosuke
mayosuke / bl.ocks.org.test
Last active March 13, 2016 02:04 — forked from mbostock/.block
test.
http://bl.ocks.org/mayosuke/151f8c7cf195a72a71ef