Posted by
Andreas Jahnen on
Aug 30, 2006; 10:38am
URL: http://imagej.273.s1.nabble.com/Processing-Images-without-displaying-them-on-the-screen-tp3701704.html
Dear ImageJ Users,
In my current project, I use ImageJ more as a library then directly as a
tool. We have some constraints, which makes it better this way. For this
reason I do not work with visible ImageJ windows on my desktop. This works
fine, here is a example
// get the a image from somewhere:
ImagePlus image_red = m_array.getRedImage();
// do some processing:
WindowManager.setTempCurrentImage(image_red);
IJ.run("Enhance Contrast", "saturated=0.5 normalize equalize");
IJ.run("Red");
image_red.updateImage();
Especially this is fine, as I can test my problems in ImageJ and then
integrate this directly into my programme.
With this I have one problem: I can not use plugins and functions that are
using more than the "TempCurrentImage", for example the following
commands:
- Merge RGB...
- Image Calculator...
Does anybody know a solution, that I can do the following without
displaying images on the screen?
// some not working code, that should demonstrate what I want to do:
// get the a images from somewhere:
ImagePlus image_red = m_array.getRedImage();
ImagePlus image_green = m_array.getGreenImage();
// do some processing:
WindowManager.setTempCurrentImage("red", image_red);
WindowManager.setTempCurrentImage("green", image_green);
IJ.run("RGB Merge...", "red=[red] green=[green]");
Thank you very much,
Andreas
-----------------------------------------------------------------
Andreas Jahnen - Ingenieur de Recherche
[hidden email]
-----------------------------------------------------------------
CRP Henri Tudor -
http://www.santec.lu29, Avenue John F. Kennedy
L-1855 Luxembourg
-----------------------------------------------------------------