Skip to content

Instantly share code, notes, and snippets.

View auxiliary's full-sized avatar

Mohammad (Moa) Raji auxiliary

View GitHub Profile
@auxiliary
auxiliary / volume_rendering.py
Created October 9, 2016 03:57 — forked from kevin-keraudren/volume_rendering.py
Volume rendering in Python using VTK-SimpleITK
#!/usr/bin/python
import SimpleITK as sitk
import vtk
import numpy as np
import sys
from vtk.util.vtkConstants import *
filename = sys.argv[1]
@auxiliary
auxiliary / spawn.cpp
Created September 6, 2017 23:25 — forked from konstantint/spawn.cpp
Example of communication with a subprocess via stdin/stdout
//
// Example of communication with a subprocess via stdin/stdout
// Author: Konstantin Tretyakov
// License: MIT
//
#include <ext/stdio_filebuf.h> // NB: Specific to libstdc++
#include <sys/wait.h>
#include <unistd.h>
#include <iostream>