DICOM Roi to Tiff
Posted by Guido Lütke Wöstmann on Dec 14, 2007; 9:25am
URL: http://imagej.273.s1.nabble.com/DICOM-Roi-to-Tiff-tp3697763.html
Hi,
what I want to do is:
Open a DICOM-File, create a ROI and save only this ROI as a TIFF-Image.
Doing this by using the GUI of ImageJ is simple and not the Problem.
My Problem is:
I want to use the ImageJ-API. I tried to use Code like this:
ShortProcessor sp = new ShortProcessor(width, height);
roi.drawPixels(sp);
ImagePlus ip = new ImagePlus("", sp);
FileSaver fs = new FileSaver(ip);
fs.saveAsTiff();
But I can't open the resulting Tiff-Image. Whats wrong with this Code?
Do I have to convert the DICOM-Image before saving?
Thanks for help,
Guido