Hi, I've noticed a behaviour with ImageJ (using version 1.47h4 on a Mac) that I suspect might be a bug. I'm wondering if anyone out there can confirm the behaviour or let me know if I'm doing something wrong here.
My situation is that I have a file folder containing 6000 images, created by another macro as 32-bit images and saved into the folder. The file size of each image is 1 MB with dimensions of 512x512 pixels. When I use the standard File->Import->Image Sequence command, the files are opened as a single stack, but they are converted to 8-bit. Is that normal? I seem to remember older versions of ImageJ having a tick box in the import image sequence dialog that would ask you if you wanted to convert the image sequence to 8-bit, but I don't see that in this version. Am I remembering it wrong? Thanks for any help with this, John Oreopoulos Research Assistant Spectral Applied Research Richmond Hill, Ontario Canada www.spectral.ca -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Ah, I think I may have found the problem. My original macro had a bug which did not save the first image as 32-bit (it remained 8-bit). All subsequent images were generated and saved as 32-bit images. Converting the first image by hand to 32-bit and trying out the import command worked as expected now.
So then, this is the normal behaviour of the import image sequence command? If the first file that is imported is 8-bit, all other images that get imported are converted to the same file type? John Oreopoulos On 2012-12-10, at 12:42 PM, John Oreopoulos wrote: > Hi, I've noticed a behaviour with ImageJ (using version 1.47h4 on a Mac) that I suspect might be a bug. I'm wondering if anyone out there can confirm the behaviour or let me know if I'm doing something wrong here. > > My situation is that I have a file folder containing 6000 images, created by another macro as 32-bit images and saved into the folder. The file size of each image is 1 MB with dimensions of 512x512 pixels. When I use the standard File->Import->Image Sequence command, the files are opened as a single stack, but they are converted to 8-bit. Is that normal? I seem to remember older versions of ImageJ having a tick box in the import image sequence dialog that would ask you if you wanted to convert the image sequence to 8-bit, but I don't see that in this version. Am I remembering it wrong? > > Thanks for any help with this, > > John Oreopoulos > Research Assistant > Spectral Applied Research > Richmond Hill, Ontario > Canada > www.spectral.ca > > > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
On Dec 10, 2012, at 1:04 PM, John Oreopoulos wrote:
> Ah, I think I may have found the problem. My original macro had a bug which did not save the first image as 32-bit (it remained 8-bit). All subsequent images were generated and saved as 32-bit images. Converting the first image by hand to 32-bit and trying out the import command worked as expected now. > > So then, this is the normal behaviour of the import image sequence command? If the first file that is imported is 8-bit, all other images that get imported are converted to the same file type? The type of the first file in the sequence determines the type of the resulting stack but there was a bug in ImageJ 1.47g and earlier that caused it to automatically convert 32-bit images if the first image was 8-bit. Starting with the 1.47h daily build, ImageJ displays an error message if it encounters a 32-bit image and the first image is 8-bit. Conversely, 8-bit images are automatically converted if the first image is 32-bit. -wayne > On 2012-12-10, at 12:42 PM, John Oreopoulos wrote: > >> Hi, I've noticed a behaviour with ImageJ (using version 1.47h4 on a Mac) that I suspect might be a bug. I'm wondering if anyone out there can confirm the behaviour or let me know if I'm doing something wrong here. >> >> My situation is that I have a file folder containing 6000 images, created by another macro as 32-bit images and saved into the folder. The file size of each image is 1 MB with dimensions of 512x512 pixels. When I use the standard File->Import->Image Sequence command, the files are opened as a single stack, but they are converted to 8-bit. Is that normal? I seem to remember older versions of ImageJ having a tick box in the import image sequence dialog that would ask you if you wanted to convert the image sequence to 8-bit, but I don't see that in this version. Am I remembering it wrong? >> >> Thanks for any help with this, -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |