Posted by
Johannes Hermen on
Mar 05, 2007; 7:10am
URL: http://imagej.273.s1.nabble.com/embedding-ImageJ-in-DICOM-viewer-editor-tp3699241p3699245.html
ImageJ Interest Group <
[hidden email]> wrote on 02.03.2007 06:12:08
PM:
> I've been working on a DICOM viewer and editor that uses ImageJ to
> display the pixel data. Right now, I'm just creating an ImageJ instance
> in my Java code, which is nice because then I can have my code assemble
> ImagePlus objects from whatever DICOM files the user selects, then hand
> them off to ImageJ for viewing and manipulating the images.
We have been working on a small DICOM Viewer on top of ImageJ in our
research center too.
We use our own component to show/zoom/window the DICOM images, but have
the posibillity to open the files in ImageJ to do some extra operations.
What we do is to create an ImageJ instance in the code too, but i can't
reproduce your problem that if ImageJ is closed, the whole application is
closed. Maybe the part of my code might help you.
----------snip--------------------------------------------------
this.actionOpenImageJ = new AbstractAction("open in ImageJ",
Icons.getIcon(Icons.ACTION_IMAGEJ)) {
private static final long serialVersionUID = 1L;
private ImageJ m_ImageJ;
public void actionPerformed(ActionEvent e) {
if (m_ImageJ == null) {
m_ImageJ = new ImageJ();
m_ImageJ.setVisible(false);
}
if (image != null) {
WindowManager.addWindow(new
ImageWindow(new ImagePlus("Optimage
debug",image.getProcessor().duplicate())));
}
m_ImageJ.setVisible(true);
}
};
----------snap--------------------------------------------------
You can find our viewer at:
http://santec.tudor.lu/projects/optimage/dicomtools/P.S. The viewer is still a beta version which was build for our internal
projects. There are still some bugs and missing features in it.
Greets
Johannes
-----------------------------------------------------------------
Johannes Hermen - Ingenieur de Recherche
[hidden email]
-----------------------------------------------------------------
CRP Henri Tudor
http://www.santec.tudor.lu29, Avenue John F. Kennedy
L-1855 Luxembourg
-----------------------------------------------------------------