Skip to content

Instantly share code, notes, and snippets.

# http://blog.seljebu.no/2014/11/22/install-numba-in-osx-yosemite-with-brew/
# http://www.australsounds.com/2014/10/installing-numba-in-os-x-1010.html
brew tap homebrew/versions
brew install --disable-assertions --rtti llvm37
git clone https://github.com/numba/llvmlite
cd llvmlite
LLVM_CONFIG=/usr/local/Cellar/llvm37/3.7.1/bin/llvm-config-3.7 python setup.py install
cd ..
@kevin-keraudren
kevin-keraudren / Conferences.md
Last active April 20, 2025 23:55
List of conferences in Medical Imaging and Computer Vision

Conferences in Medical Imaging/Computer Vision

MICCAI: Medical Image Computing and Computer Assisted Intervention

http://www.miccai.org/

BMVC: British Machine Vision Conference

#!/bin/bash
set -x
set -e
git clone https://github.com/Kitware/VTK.git
cd VTK
mkdir build
cd build
#!/usr/bin/python
import numpy as np
import cv2
import densecrf as dcrf
from skimage.segmentation import relabel_sequential
import sys
# Usage:
# python dense_inference.py image annotations output
@kevin-keraudren
kevin-keraudren / SimpleElastix.md
Created December 10, 2015 21:44
Building SimpleElastix
# http://stackoverflow.com/questions/9924135/fast-cartesian-to-polar-to-cartesian-in-python
import cv2
import numpy as np
import scipy.ndimage as nd
import irtk
def polar2cart(r, theta, center):
x = r * np.cos(theta) + center[0]
import dicom
import numpy as np
def load_dcm(filename):
dcm = dicom.ReadFile(filename)
# http://www.creatis.insa-lyon.fr/pipermail/dcmlib/2005-September/002141.html
# http://www.dabsoft.ch/dicom/3/C.7.6.2.1.1/
# http://xmedcon.sourceforge.net/Docs/OrientationDicomStandard
img0 = dcm[(0x5200, 0x9230)][0] # Per-frame Functional Groups Sequence
@kevin-keraudren
kevin-keraudren / SLURM.md
Created August 12, 2015 15:28
SLURM examples
import numpy as np
def dr_toolbox(D,n_components=None):
"""
Landmark isomap dimensionality reduction method
This is the version implemented in
http://homepage.tudelft.nl/19j49/Matlab_Toolbox_for_Dimensionality_Reduction.html
Parameters
----------
@kevin-keraudren
kevin-keraudren / cell_segmentation.py
Created July 3, 2015 10:27
ImageJ Jython: draft cell segmentation protocol
#!/usr/bin/env jython
# \begin{enumerate}
# \item Process $\rightarrow$ Gaussian Blur
# \item Process $\rightarrow$ Enhance Contrast (normalize \& equalize histogram)
# \item Image $\rightarrow$ Type $\rightarrow$ HSB stack
# \item Image $\rightarrow$ Stacks $\rightarrow$ Stack to images
# \item keep only the Hue image
# \item Process $\rightarrow$ Find maxima... (noise tolerance 60)
# \end{enumerate}