Login  Register

FW: Saving Tiff files

Posted by Daniel Devlin-2 on Feb 11, 2013; 6:40pm
URL: http://imagej.273.s1.nabble.com/FW-Saving-Tiff-files-tp5001723.html

Hi All,



Could anyone help with the issue below?



Thanks,

Daniel

________________________________
From: Daniel Devlin
Sent: 11 February 2013 13:26
To: [hidden email]
Subject: Saving Tiff files

Hi All,

I am a university student in Northern Ireland. I have created an application with the purpose of trying to extract vessel maps from retinal images. I am using the ImageJ library to open a tiff file as I didn't have the resources to do this myself. I now have a greyscale image that is a 2D integer array and I would like to save this. I have tried to assign an Image to the ImageProcessor and save this but I keep getting an Access Denied message. Any help would be greatly appreciated.

Thanks,
Daniel

P.S Here is the code to attempt the save.
//load.pc.getImage returns buffered image
Image image = load.pc.getImage();
ImagePlus imagePlus = new ImagePlus();
imagePlus.setImage(image);
imagePlus.setTitle(fileName);
FileSaver saver = new FileSaver(imagePlus);
saver.saveAsTiff(picker.getSaveDirectory());

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html