When i try to open a compressed image, ImageJ reports java.io.IOException
> ImageJ cannot open compressed DICOM Images > Transfer Systax UID = 1.2.840.10008.1.2.4.70 Is there any readymade plugin that can be used with ImageJ to open a compressed image?. Thanks in advance __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
Hi Muqeet,
Bio-Formats has recently added support for compressed DICOM. You can download from: http://www.loci.wisc.edu/ome/formats.html Please let me know if you have any trouble with it. -Curtis On Nov 12, 2007 6:19 AM, MUQEET KHAN <[hidden email]> wrote: > When i try to open a compressed image, ImageJ reports java.io.IOException > > ImageJ cannot open compressed DICOM Images > > Transfer Systax UID = 1.2.840.10008.1.2.4.70 > > Is there any readymade plugin that can be used with ImageJ to open a compressed image?. > > Thanks in advance > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > |
I downloaded the jar from the given link. I see sub-menus also. Problem is which file do i need to run as plugin. and where shall i call in the ImageJ source. I am calling in Opener.java if the given image is compressed one.
Thanks in advance Curtis Rueden <[hidden email]> wrote: Hi Muqeet, Bio-Formats has recently added support for compressed DICOM. You can download from: http://www.loci.wisc.edu/ome/formats.html Please let me know if you have any trouble with it. -Curtis On Nov 12, 2007 6:19 AM, MUQEET KHAN wrote: > When i try to open a compressed image, ImageJ reports java.io.IOException > > ImageJ cannot open compressed DICOM Images > > Transfer Systax UID = 1.2.840.10008.1.2.4.70 > > Is there any readymade plugin that can be used with ImageJ to open a compressed image?. > > Thanks in advance > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
In reply to this post by ctrueden
Hi
I have downloaded the plugin to ImageJ (1.38) and I can see LOCI sub-menu in Plugins. When i tried to open sample DICOM image http://www.barre.nom.fr/medical/samples/files/XA-MONO2-8-12x-catheter.gz I get the following exception. loci.formats.FormatException: Unknown file format: /tmp/XA-MONO2-8-12x-catheter at loci.formats.ImageReader.getReader(ImageReader.java:138) at loci.plugins.Importer.run(Importer.java:98) at loci.plugins.LociImporter.run(LociImporter.java:74) at ij.IJ.runUserPlugIn(IJ.java:158) at ij.IJ.runPlugIn(IJ.java:124) at ij.Executer.runCommand(Executer.java:95) at ij.Executer.run(Executer.java:49) at java.lang.Thread.run(Unknown Source) I tried with another sample image http://www.barre.nom.fr/medical/samples/files/CT-MONO2-16-chest.gz and the exception is same. loci.formats.FormatException: Unknown file format: /tmp/CT-MONO2-16-chest at loci.formats.ImageReader.getReader(ImageReader.java:138) at loci.plugins.Importer.run(Importer.java:98) at loci.plugins.LociImporter.run(LociImporter.java:74) at ij.IJ.runUserPlugIn(IJ.java:158) at ij.IJ.runPlugIn(IJ.java:124) at ij.Executer.runCommand(Executer.java:95) at ij.Executer.run(Executer.java:49) at java.lang.Thread.run(Unknown Source) Any help will be appreciated.
|
In reply to this post by Abdul Muqeet Khan
Hi Muqeet,
Within the ImageJ interface, you can choose "Bio-Formats Importer" from the Plugins>LOCI menu, then choose the desired DICOM file. I'd test this first, to see whether your files can be read. Once you verify that things work, it sounds like you want to call this code from within your own plugin, right? In that case, what you do depends on how much control you want over the image loading process. The easiest thing is something like: IJ.run("Bio-Formats Importer", "open=[" + myFile + "] view=[Standard ImageJ] stack_order=Default autoscale"); I got that line by running Plugins>Macros>Record, choosing the Bio-Formats Importer plugin with desired options, clicking "Create" in the Macro Recorder window, then choosing Edit>Convert to Plugin. For more information on using Bio-Formats as a library (for detailed import control), see the "Using Bio-Formats as a library" section of the Bio-Formats web site. -Curtis On Nov 12, 2007 11:15 AM, MUQEET KHAN <[hidden email]> wrote: > I downloaded the jar from the given link. I see sub-menus also. Problem is which file do i need to run as plugin. and where shall i call in the ImageJ source. I am calling in Opener.java if the given image is compressed one. > > Thanks in advance > > Curtis Rueden <[hidden email]> wrote: Hi Muqeet, > > Bio-Formats has recently added support for compressed DICOM. > > You can download from: > http://www.loci.wisc.edu/ome/formats.html > > Please let me know if you have any trouble with it. > > -Curtis > > > On Nov 12, 2007 6:19 AM, MUQEET KHAN wrote: > > When i try to open a compressed image, ImageJ reports java.io.IOException > > > ImageJ cannot open compressed DICOM Images > > > Transfer Systax UID = 1.2.840.10008.1.2.4.70 > > > > Is there any readymade plugin that can be used with ImageJ to open a compressed image?. > > > > Thanks in advance > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > |
Free forum by Nabble | Edit this page |