Software Development Kit for reading slices from .nsivol and .nsihdr file formats.
Includes bindings for C, C++, C#, and Python.
Documentation is in C++ and examples are available for C++, C#, and Python.
- Import SDK
#include "efX_SDK.h"
using namespace NSI::efX;
- Create a volume accessor
Volume* vol = Volume::Create();
- Open a .nsivol or .nsihdr file
vol->open(L"example.nsihdr");
- Access properties of the volume and allocate a buffer for the slices
float* slice = new float[vol->slice_width() * vol->slice_height()];
- Read a specific slice
// Index ranges from 0 to vol->num_slices()-1
vol->read_slice(slice, 100); // Read 100th slice
- Cleanup when done using slice and volume
vol->destroy();
delete[] slice;
North Star Imaging will continue to update efX-SDK to support changes to the NSI efX volume format. Additionally, updates to the volume format can be separately installed without updating the software that uses efX-SDK. These updates are automatically included in efX-ct and are also available as windows installers at https://github.com/NorthStarImaging/efX-SDK/releases
Licensed under BSD-3-Clause. See LICENSE for more information.