I just upgraded to 1.50i using java 1.80_77 (32bit) on a 64bit Windows 7 machine.
Now when I try to save a fft as TIFF, I get the java error shown below. ImageJ 1.50i; Java 1.8.0_77 [32-bit]; Windows 7 6.1; 26MB of 640MB (4%) java.lang.IllegalArgumentException: IndexColorModel required at ij.process.ImageProcessor.setColorModel(ImageProcessor.java:165) at ij.io.FileSaver.setupFFTSave(FileSaver.java:134) at ij.io.FileSaver.saveAsTiff(FileSaver.java:101) at ij.io.FileSaver.saveAsTiff(FileSaver.java:92) at ij.plugin.filter.Writer.run(Writer.java:20) at ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:265) at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:114) at ij.IJ.runPlugIn(IJ.java:188) at ij.Executer.runCommand(Executer.java:137) at ij.Executer.run(Executer.java:66) at java.lang.Thread.run(Unknown Source) Has anyone solved this problem? Thanks. |
Dear Noname,
evidently you tried to compute the power spectrum of a 24bit RGB-image. Although I remember that there used to be a way to do this, I doubt that it has a reasonable general meaning. So could you please specify what you expect to get as the FT of a 24bit RGB-image? The power spectrum of the equivalent gray-scale image? Three power spectra, i.e. one for every RGB-channel? ... Best Herbie :::::::::::::::::::::::::::::::::::::: Am 07.04.16 um 16:46 schrieb moreglia: > I just upgraded to 1.50i using java 1.80_77 (32bit) on a 64bit Windows 7 > machine. > Now when I try to save a fft as TIFF, I get the java error shown below. > ImageJ 1.50i; Java 1.8.0_77 [32-bit]; Windows 7 6.1; 26MB of 640MB (4%) > > java.lang.IllegalArgumentException: IndexColorModel required > at ij.process.ImageProcessor.setColorModel(ImageProcessor.java:165) > at ij.io.FileSaver.setupFFTSave(FileSaver.java:134) > at ij.io.FileSaver.saveAsTiff(FileSaver.java:101) > at ij.io.FileSaver.saveAsTiff(FileSaver.java:92) > at ij.plugin.filter.Writer.run(Writer.java:20) > at > ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:265) > at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:114) > at ij.IJ.runPlugIn(IJ.java:188) > at ij.Executer.runCommand(Executer.java:137) > at ij.Executer.run(Executer.java:66) > at java.lang.Thread.run(Unknown Source) > > Has anyone solved this problem? Thanks. > > > > > -- > View this message in context: http://imagej.1557.x6.nabble.com/version-1-50i-fails-to-save-FFT-as-TIFF-tp5016075.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Many Thanks, Herbie! You made me realize that the problem was in how I converted 32bitRGB to grayscale
(I used photoshop instead of imageJ). Now that I do the conversion in imageJ, the FFT saves as TIFF just fine. Cheers, Mark |
In reply to this post by moreglia
On Apr 7, 2016, at 10:46 AM, moreglia <[hidden email]> wrote:
> > I just upgraded to 1.50i using java 1.80_77 (32bit) on a 64bit Windows 7 > machine. > Now when I try to save a fft as TIFF, I get the java error shown below. > ImageJ 1.50i; Java 1.8.0_77 [32-bit]; Windows 7 6.1; 26MB of 640MB (4%) This bug, which only occurs with RGB images, is fixed in the latest ImageJ daily build (1.51a3). Note that you cannot do an inverse FFT on re-opened FFTs of RGB images. -wayne > java.lang.IllegalArgumentException: IndexColorModel required > at ij.process.ImageProcessor.setColorModel(ImageProcessor.java:165) > at ij.io.FileSaver.setupFFTSave(FileSaver.java:134) > at ij.io.FileSaver.saveAsTiff(FileSaver.java:101) > at ij.io.FileSaver.saveAsTiff(FileSaver.java:92) > at ij.plugin.filter.Writer.run(Writer.java:20) > at > ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:265) > at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:114) > at ij.IJ.runPlugIn(IJ.java:188) > at ij.Executer.runCommand(Executer.java:137) > at ij.Executer.run(Executer.java:66) > at java.lang.Thread.run(Unknown Source) > > Has anyone solved this problem? Thanks. > > > > > -- > View this message in context: http://imagej.1557.x6.nabble.com/version-1-50i-fails-to-save-FFT-as-TIFF-tp5016075.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by moreglia
Hi everyone,
just a bit of background information: If you save an FFT as TIFF or ZIP with the name 'FFT of ...', ImageJ actually saves the raw FFT data that are hidden behind the 8-bit image that you see (more strictly speaking, the raw data are a Fast Hartley Transform of the image). Thus, when loading such an 'FFT of ...' image you can do the back conversion or any other operations that you are used to do with an FFT. The 8-bit image that you see will be recovered from the raw FFT data (as you can do with Process>FFT>Redisplay Power spectrum). If you save an FFT with a different format or with a different name, only the 8-bit image that you see gets saved, and the FFT information will be lost. The 8-bit image that you see is the power spectrum with logarithmic scaling of the gray value (usually over several orders of magnitude of magnitude), with pixel values 1-254 (0 and 255 are reserved for filtering). Michael ________________________________________________________________ On 2016-04-07 18:02, moreglia wrote: > Many Thanks, Herbie! You made me realize that the problem was in how I > converted 32bitRGB to grayscale > (I used photoshop instead of imageJ). Now that I do the conversion in > imageJ, the FFT saves as TIFF just fine. > > Cheers, > Mark -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |