Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python | |
"""When cross compiling with CMake, the CMake introspection process may involve | |
"try_run" calls where an executable in run on the target system to learn some | |
information about the target system. Since we are cross compiling, attempting | |
to run the executable on the host is not possible or informative. | |
As a result, the initial CMake configuration on the host system will fail, but | |
it will create a file called TryRunResults.cmake that contains entries that | |
must result from the target system. These entries can be found by running a |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python | |
"""Render VTK Polydata and view or save PNG or save WebGL. | |
When an output PNG or WebGL file is not specified, an interactive windows is | |
displayed. To get the camera position from the interactive window, press the | |
"c" key. | |
""" | |
import argparse |
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 python | |
import sys | |
import tubetk | |
from tubetk.numpy import tubes_from_file | |
from tubetk.pyqtgraph import tubes_as_circles | |
import pyqtgraph as pg | |
import pyqtgraph.opengl as gl |
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 python | |
""" | |
simple example script for running and testing notebooks. | |
Usage: `ipnbdoctest.py foo.ipynb [bar.ipynb [...]]` | |
Each cell is submitted to the kernel, and the outputs are compared with those stored in the notebook. | |
""" | |
import os,sys,time |
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
cmake_minimum_required( VERSION 2.8 ) | |
project( uses-jsoncpp ) | |
find_package( jsoncpp REQUIRED ) | |
include_directories( ${jsoncpp_INCLUDE_DIRS} ) | |
add_executable( uses-jsoncpp main.cpp ) | |
target_link_libraries( uses-jsoncpp ${jsoncpp_LIBRARIES} ) |
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 python | |
"""Convert UnstructuredGrid in .vtk files to STL files.""" | |
import sys | |
import vtk | |
if len(sys.argv) < 2 or sys.argv[1] == '-h' or sys.argv[1] == '--help': | |
print('Usage: vtk-unstructuredgrid-to-stl.py <input.vtk> <output.stl>') | |
sys.exit(1) |
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
#include "itkAffineTransform.h" | |
#include "itkTransformFileWriter.h" | |
int main( int argc, char * argv[] ) | |
{ | |
if( argc < 2 ) | |
{ | |
std::cerr << "Usage: " | |
<< argv[0] | |
<< " outputTransform" |
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
cmake \ | |
-DITK_BUILD_DEFAULT_MODULES:BOOL=OFF \ | |
-DBUILD_TESTING:BOOL=OFF \ | |
-DBUILD_EXAMPLES:BOOL=OFF \ | |
-DITKGroup_Core:BOOL=OFF \ | |
-DModule_ITKCommon:BOOL=ON \ | |
-DCMAKE_SIZEOF_UNSIGNED_SHORT=2 \ | |
-DCMAKE_TOOLCHAIN_FILE=/home/ibanez/src/emscripten/cmake/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ~/src/ITK |