We are archiving this package because of a lack of interest or usage. SimpleITK itself remains actively in development, and users will continue to be able to build SimpleITK for Lua themselves.
This package is a rockspec file that will build and install a SimpleITK module for Lua via LuaRocks, a package manager for Lua modules. SimpleITK is a simplified, open source interface to the Insight Segmentation and Registration Toolkit (ITK). ITK is an open-source, cross-platform toolkit that provides developers with an extensive suite of software tools for image analysis and is widely used in academia and industry.
Building the module requires Lua v5.1.5, LuaRocks v2.2 and CMake v3.10. Because SimpleITK is built as a CMake-type build in LuaRocks, this module will only build on Linux and OS X. Currently cmake builds are not supported on Windows in Luarocks.
Building SimpleITK requires a sizeable amount of computing power. We recommend a multi-core system with a sizable amount of memory. Also, to facilitate multi-processing, the environment variable MAKEFLAGS should be set to something like "-jN", where N is the number of cores. For example, on an 8 core system, use the following:
export MAKEFLAGS="-j8"
Build the SimpleITK Lua module with the following command:
luarocks install simpleitk-1.2.2-0.rockspec
When building the module, an example progam is installed into the SimpleITK rock, SimpleDerivative.lua. It is copied from the SimpleITK repository .
This example demonstrates a basic progam that uses SimpleITK to create an image of a Gaussian and then performs some operations on that image. First it applies the first derivative in the X direction on the Gaussian, then it rescales the pixel intensities and converts the pixel types from float32 to uint8. Finally the result is written out as a PNG file, and the image is displayed with the Show function, which invokes Fiji/ImageJ.
The rockspec in this package is tied to a particular version of SimpleITK. So simpleitk-1.2.2-0.rockspec will build SimpleITK v1.2.2. To build a custom version of SimpleITK consult the Building a Custom Version of the SimpleITK Luarock page.
Written by David T. Chen from the National Institute of Allergy and Infectious Diseases, [email protected]. It is covered by the Apache License, Version 2.0:
http://www.apache.org/licenses/LICENSE-2.0
For more information about SimpleITK, visit https://simpleitk.readthedocs.io/
For more information about ITK, visit http://itk.org