Greetings,

In the below java code the ImageProcessor.insert is some how changing the
dynamic range, i.e., the values, of the ImageProcessor that is being
passed to insert; seems as W&L-auto is performed and LUT values are what
is inserted. What to add to Java code to stop or cause this effect.

Thanks in advance,

Fred



      ImageStack mis = new ImageStack(width,imps.length*height);
      for(int iz=0; iz<ss; iz++) {
         ImageProcessor mip =
imps[0].getProcessor().createProcessor(width,imps.length*height);
         mip.setColor(Toolbar.getBackgroundColor());
         mip.fill();
         for(int i=0; i<imps.length; i++)
            if (imps[i] != null) {
               int[] x0y0 =
offset(width,height,imps[i].getWidth(),imps[i].getHeight(),where);
               
mip.insert(imps[i].getStack().getProcessor(iz+1),x0y0[0],i*height+x0y0[1]);
               }
         mis.addSlice(mip);
         }
      ImagePlus mimp = new ImagePlus(null, mis);

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Reply via email to