Posted by
ctrueden on
Nov 12, 2007; 5:58pm
URL: http://imagej.273.s1.nabble.com/Opening-Compressed-images-tp3698050p3698053.html
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>