Skip to content
/ itkffi Public

Interoperate with ITK through FFI in Torch, Python, Julia

Notifications You must be signed in to change notification settings

orobix/itkffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itkffi

Interoperate with ITK (www.itk.org) through FFI in Torch (LuaJIT), NumPy (Python) or Julia.

Install

First install ITK (works on Debian/Ubuntu and MacOS):

bash install_dependencies.sh

Torch (LuaJIT)

Build itkffi using LuaRocks:

luarocks make itkffi-scm-1.rockspec

Then in Torch

local itk = require 'itkffi'

local img = itk.Float2D()
img:read("input.nrrd")

local simg = img:gaussiansmoothing(2.0)

t = simg:tensor()

NumPy (Python)

Coming up.

Julia

Coming up.

License

BSD license https://opensource.org/licenses/BSD-3-Clause

Copyright 2016, Luca Antiga, Orobix Srl (www.orobix.com).

About

Interoperate with ITK through FFI in Torch, Python, Julia

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published