Windowing an Image without cloning it

Posted by Johannes Hermen on
URL: http://imagej.273.s1.nabble.com/Windowing-an-Image-without-cloning-it-tp3703658.html

Hi,

Does anybody knows a way to "window" an ImagePlus, without creating a new
Image every time?
By now I am do this like that:

------------------------------------------------------------------
Imageplus image;
ImageProcessor imageProcessor;

this.imageProcessor = image.getProcessor();
this.imageProcessor.setMinAndMax(windowMin, windowMax);
this.image = new ImagePlus("ResultImage", this.imageProcessor);
-------------------------------------------------------------------

This way is very CPU and Memory consuming, as I have to copy the image
every time.

Thanks in advance

  Johannes
-----------------------------------------------------------------
ImageJ User and Developer Conference
Please visit: http://imagejconf.tudor.lu
-----------------------------------------------------------------
Johannes Hermen  -  Ingenieur de Recherche
[hidden email]
-----------------------------------------------------------------
CRP Henri Tudor  http://www.santec.tudor.lu
29, Avenue John F. Kennedy
L-1855 Luxembourg
-----------------------------------------------------------------