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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

chenyanpei
                         rt.reset();
                       
                        MaximumFinder fd=new MaximumFinder();
                       
                        ByteProcessor TU = fd.findMaxima(stack.getProcessor(iFrame),15,20,4,false,true);
                         
                        int ir=rt.getCounter();
                       
                       
                        float[] sx = null;
                        float[] sy=null;
                       
                        for(int it=1;it<ir;it++){
                        sx[it] = rt.getValue('X',it);
                        sy[it] = rt.getValue('Y',it);


I want to get the resulttable ,but There are some problems. My code is right?
Reply | Threaded
Open this post in threaded view
|

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

chenyanpei
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