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 subprocess | |
#import slicer | |
#from slicer.ScriptedLoadableModule import * | |
def run_command(command, out_path): |
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
itk_module_test() | |
set(ITKIODCMTKTests | |
itkDCMTKGetDicomTagsTest.cxx | |
itkDCMTKImageIOTest.cxx | |
itkDCMTKRGBImageIOTest.cxx | |
itkDCMTKSeriesReadImageWrite.cxx | |
itkDCMTKSeriesStreamReadImageWrite.cxx | |
itkDCMTKImageIOOrthoDirTest.cxx | |
itkDCMTKMultiFrame4DTest.cxx | |
itkDCMTKLoggerTest.cxx |
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
import os | |
import nibabel as nib | |
from dipy.data import fetch_bundles_2_subjects, read_bundles_2_subjects | |
from fury import window, actor | |
fetch_bundles_2_subjects() | |
fname_t1 = os.path.join( | |
os.path.expanduser('~'), '.dipy', 'exp_bundles_and_maps', | |
'bundles_2_subjects', 'subj_1', 't1_warped.nii.gz') |
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
import os | |
import nibabel as nib | |
from dipy.data import fetch_bundles_2_subjects, read_bundles_2_subjects | |
from fury import window, actor | |
fetch_bundles_2_subjects() | |
fname_t1 = os.path.join( | |
os.path.expanduser('~'), '.dipy', 'exp_bundles_and_maps', | |
'bundles_2_subjects', 'subj_1', 't1_warped.nii.gz') |
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
import os | |
import nibabel as nib | |
from dipy.data import fetch_bundles_2_subjects, read_bundles_2_subjects | |
from fury import window, actor | |
fetch_bundles_2_subjects() | |
fname_t1 = os.path.join( | |
os.path.expanduser('~'), '.dipy', 'exp_bundles_and_maps', | |
'bundles_2_subjects', 'subj_1', 't1_warped.nii.gz') |
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
### JHW 2018 | |
import numpy as np | |
import umap | |
# This code from the excellent module at: | |
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module | |
import random |
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
""" | |
Pytorch tutorials for Neural Style transfer | |
https://github.com/alexis-jacq/Pytorch-Tutorials | |
""" | |
# Packages | |
from PIL import Image | |
import torch | |
from torch import nn, optim | |
from torch.autograd import Variable |
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 ruby | |
# A small ruby script to extract a git history to a tikz picture | |
# Author: Michael Hauspie <Michael.Hauspie@lifl.fr> | |
# Author: Lennart C. Karssen <lennart@karssen.org> | |
# | |
# Not clean code, not always working well, but does its job in most of | |
# the cases I needed :) | |
# | |
# LCK: Added some ideas from this tex.stackexchange answer: |