Skip to content

Instantly share code, notes, and snippets.

View arnaudgelas's full-sized avatar

Arnaud Gelas arnaudgelas

View GitHub Profile
@arnaudgelas
arnaudgelas / CMakeLists.txt
Created May 27, 2015 06:24
vtkResliceImageViewer vs vtkImageViewer2
project( viewer )
cmake_minimum_required( VERSION 2.8 )
find_package( VTK REQUIRED )
include( ${VTK_USE_FILE} )
add_executable( viewer MACOSX_BUNDLE viewer.cxx )
target_link_libraries( viewer ${VTK_LIBRARIES} )
@arnaudgelas
arnaudgelas / CMakeLists.txt
Created October 21, 2014 08:25
gdcm reslice several images
project( reslice )
cmake_minimum_required( VERSION 2.6 )
find_package( GDCM REQUIRED )
include( ${GDCM_USE_FILE} )
add_executable( reslice reslice.cxx )
target_link_libraries( reslice vtkgdcm ${VTK_LIBRARIES} )
@arnaudgelas
arnaudgelas / CMakeLists.txt
Created August 7, 2014 14:34
smoothing qe mesh
cmake_minimum_required( VERSION 2.8 )
find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )
add_executable( smooth smooth.cxx )
target_link_libraries( smooth ${ITK_LIBRARIES} )
#! /usr/bin/python
import subprocess,os
from time import localtime,strftime
# directory containing the repositories
repo_dir = "/Users/arnaud/GITROOT/ITKExamples/.git"
# feed url
feed_url = "http://example.com/git/index.xml"
# location of rss on the web server
/* Procedure 2 Update Level Set Lists
// Update the zero level set
1: for each point p in Lz
2: add F(p) to phi(p)
3: if(phi(p)> .5), remove p from Lz, add p to Sp1
4: if(phi(p)<-.5), remove p from Lz, add p to Sn1
*/
LevelSetNodeListType* list_0 = m_SparseLevelSet->GetListNode( 0 );
project( itkMetaImageMesh.cxx )
cmake_minimum_required( VERSION 2.6 )
find_package( ITK )
include( ${ITK_USE_FILE} )
add_executable( itkMetaImageMesh itkMetaImageMesh.cxx )
target_link_libraries( itkMetaImageMesh ${ITK_LIBRARIES} )