automatically load DICOM stack from folder
Posted by Tony Shepherd on Mar 22, 2011; 9:39am
URL: http://imagej.273.s1.nabble.com/automatically-load-DICOM-stack-from-folder-tp3685323.html
Hi,
I would like my plugin to open a DICOM image into a stack, just like from the menu "file .. import sequence.." when the folder is known, where all the files (slices) are.
The code would look something like:
ImagePlus thisDicom = IJ.load("path-to-folder", "DICOM")
or
ImagePlus thisDicom = IJ.loadDicom("path-to-folder")
Can I do this (even if it means downloading a class library and using 'import newLibrary.*;' at the head of the plugin) ?