File Exchange

image thumbnail

kouichi-c-nakamura/copytoImag​ePlus

version 1.0.0.0 (953 KB) by Kouichi C. Nakamura
copytoImagePlus allows you to turn a MATLAB array into ImagePlus Java object for ImageJ.

1 Download

Updated 20 May 2018

GitHub view license on GitHub

Assuming you have communication between ImageJ and MATLAB via ImageJ-MATLAB, copytoImagePlus allows you to turn a MATLAB array into ImagePlus object.
copytoImagePlus is a MATLAB function. Assuming you have communication between ImageJ and MATLAB via ImageJ-MATLAB, copytoImagePlus allows you to turn a MATLAB array into ImageJ1 ImagePlus object (a hyperstack).

- This function is similar to ijmshow, but unlike ijmshow, copytoImagePlus does not require net.imagej.matlab.ImageJMATLABCommands object IJM in base MATLAB Workspace. Therefore, copytoImagePlus can be used both when you launch an instance of ImageJ from within MATLAB (like ijmshow) and when you launch an instance of MATLAB from ImageJ.

- copytoImg and copytoImgPlus are bundled with Fiji and work in a similar way but using ImageJ2 API and objects, instead of ImageJ1 ImagePlus object.

SYNTAX

imp = copytoImagePlus (I)
imp = copytoImagePlus (I,dimorder)
imp = copytoImagePlus (____,'Param',value)

Optional Parameter/Value pairs

'NewName' char row vector | 'new' (default)
The window title of the new image in ImageJ

'FrameInterval' scalar
Time frame sampling interval in seconds

Cite As

Kouichi C. Nakamura (2020). kouichi-c-nakamura/copytoImagePlus (https://github.com/kouichi-c-nakamura/copytoImagePlus), GitHub. Retrieved .

Comments and Ratings (2)

No I don't. I'd like to know it if it exists. The major frustration of using ImageJ/FIji is the lack of "a comprehensive guide." I had to go through ImageJ's Java docs a lot, but they're often very unfriendly. This is a major difference from MATLAB, which comes with great documentation and examples.

https://javadoc.scijava.org/ImageJ1/ij/ImagePlus.html

Tom Jensen

Hi this is very useful,
Do you know of a comprehensive guide to the syntax for setting the properties of the image plus object? I would like to set the image dimensions, pixel sizes and set ROIs created using MATLAB drawfreehand (or other ROI commands) if possible.
Thanks.

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux