Login  Register

Re: how I can use " findMaxima" result table in the JAVA program?

Posted by chenyanpei on Aug 27, 2010; 3:09pm
URL: http://imagej.273.s1.nabble.com/how-I-can-use-findMaxima-result-table-in-the-JAVA-program-tp3687152p3687153.html

I change to this it works now:
ImageProcessor ip = stack.getProcessor(iFrame);
                        int Height = stack.getProcessor(iFrame).getHeight();
                        int Width=stack.getProcessor(iFrame).getWidth();
                        ByteProcessor ip2 = new ByteProcessor(Width,Height);
                        MaximumFinder maxifind = new MaximumFinder() ;
                       
                        ip2                    = maxifind.findMaxima(ip,11, ip.NO_THRESHOLD,0,false,false);
                        ImagePlus img2 = new ImagePlus("mask",ip2);
                       
                       
 but My picture is exactly EDM Map,why need to set flase in the fifth parameter of findMaxima