I hereby claim:
- I am LeeKamentsky on github.
- I am leek (https://keybase.io/leek) on keybase.
- I have a public key whose fingerprint is 3121 F2B2 72A5 B170 CDD2 354C 9B73 EE8C 668F 943B
To claim this, I am signing this object:
| def centers(l): | |
| z, y, x = np.where(l > 0) | |
| a = np.bincount(l[z, y, x]) | |
| xx = np.bincount(l[z, y, x], x) | |
| yy = np.bincount(l[z, y, x], y) | |
| zz = np.bincount(l[z, y, x], z) | |
| return np.column_stack( | |
| (zz.astype(float) / a, yy.astype(float) / a, xx.astype(float) / a)) |
I hereby claim:
To claim this, I am signing this object:
| Install Microsoft SDK for Windows 7 | |
| Install JDK 8 64-bit | |
| Install Python 2.7 | |
| Install Git for Windows (and choose the option that lets you run git from the Windows command-line) | |
| Install CMake (https://cmake.org/download) (choose the option to aqdd CMake to the system PATH for current user) | |
| pip install --upgrade pip | |
| pip install virtualenv | |
| # | |
| # The wheels (.whl) from Christoph Gohlke's site can be installed like this: | |
| # pip install c:/Users/<me>/Downloads/mywheel_amd64.whl |
| def rotate(direction, index): | |
| return direction[-index:] + direction[:-index] | |
| def make_kernel(convolution_mask): | |
| k = list(convolution_mask) | |
| k.insert(4, 0) | |
| return np.array(k).reshape(3, 3) | |
| def kirsch(img): | |
| convolution_mask = [5, -3, -3, -3, -3, -3, 5, 5] |