Welcome to the ND2 Reader MATLAB Toolbox Project!
The purpose of this project is to develop a MATLAB toolbox to read ND2 images from Nikon microscopes. This project utilizes the official ND2 SDK from Nikon Laboratory Imaging.
Visit the releases page and download the latest version.
Note that the toolbox currently only supports 64-bit Windows. However, other version should be supported by changing the libraries (see below).
The code should support other operating systems. However, you will need to download and install the drivers from https://www.nd2sdk.com/.
These instructions were written for 64-bit Windows. However, I expect that it should be applicable to other operating systems. The libraries will have a different extension e.g. on Linux they are .so files and on Mac they are .dylib files.
- Go to https://www.nd2sdk.com/
- If you are a new user, select "New user" and proceed to create a new account
- Otherwise, log in to your account
- Download the SDK files for your operating system
- At time of writing (2022-05-26), SDK v1.7.2.0 is available.
- Extract the zip file to a temporary directory, then run the installer.
- Navigate to the
nd2readsdk-shared\bin
sub-directory. There should be a number of .DLL files in the directory. Copy all the files from this directory to theext
directory. - In the
include
folder, copy the fileNd2ReadSdk.h
to theext
directory. - Check that everything is running by reading the demo file
nd2reader_demo
- In Git, clone the repository:
git clone git@gitlab.com:jwtay/nd2reader-matlab.git
- In MATLAB, add the sub-directory
nd2reader
to the path:
cd nd2reader-matlab
p = genpath('nd2reader');
addpath(p)
- Run the demo file
nd2reader_demo
Please report issues using the Issue Tracker.