Multipoint Image Importing into Matlab (Nikon .nd2)
Posted: Mon Dec 10, 2012 1:59 am
Thanks in advance.
I have been able to get Bio-Formats to work great thus far, with one exception. If the data I am importing is xPixels, yPixels (e.g., 512 x 512), z, color, and time, it works perfectly. For example, a=data{1,1} imports the images and a small amount of string info into the matlab cell a (file path, plane, z, c, t). Using regular expressions and some loops allows me to pair these numbers with the images, and stitch it together into something meaningful.
However, we use a motorized stage, and if I try to add multiple positions (xPixels, yPixels, z, color, time, position number), Bio-Formats appears to import the .nd2 file improperly. The file that I am discussing has 6 time points, 14 XY positions, 11 z-stacks, and 2 colors. Now, a=data{1,1} imports the images and strings into cell a as follows: file path, plane, z=1/462, c=1/2. It appears to be confusing the time-series, multipoint, and z-information.
I am using Apple Snow-Leopard OS-X, Matlab R2012a, and what appears to be a recent build of Bio-Formats (https://github.com/openmicroscopy/biofo ... ats/matlab). I will also upload a copy of the .m file, just in case it is helpful for others.
Any help would be appreciated.
Best,
Kevin
I have been able to get Bio-Formats to work great thus far, with one exception. If the data I am importing is xPixels, yPixels (e.g., 512 x 512), z, color, and time, it works perfectly. For example, a=data{1,1} imports the images and a small amount of string info into the matlab cell a (file path, plane, z, c, t). Using regular expressions and some loops allows me to pair these numbers with the images, and stitch it together into something meaningful.
However, we use a motorized stage, and if I try to add multiple positions (xPixels, yPixels, z, color, time, position number), Bio-Formats appears to import the .nd2 file improperly. The file that I am discussing has 6 time points, 14 XY positions, 11 z-stacks, and 2 colors. Now, a=data{1,1} imports the images and strings into cell a as follows: file path, plane, z=1/462, c=1/2. It appears to be confusing the time-series, multipoint, and z-information.
I am using Apple Snow-Leopard OS-X, Matlab R2012a, and what appears to be a recent build of Bio-Formats (https://github.com/openmicroscopy/biofo ... ats/matlab). I will also upload a copy of the .m file, just in case it is helpful for others.
Any help would be appreciated.
Best,
Kevin