Package net.sourceforge.watershed

Examples of net.sourceforge.watershed.Watershed_Algorithm.run()


        for (int i = 0; i < waterShed.length; i++) {
            if (control.getSlice(z)[i] == 0)
                waterShed[i] = (short) 0;
        }
        Watershed_Algorithm wc = new Watershed_Algorithm();
        wc.run(waterShed, width, height);
        int regionID = 1;
        int maxCount = Integer.MIN_VALUE;
        Point p = null;
        short[] mark = new short[width * height];
        int countregs = 0;
View Full Code Here


                waterShed[i] = (short) 0;
        }

        // Apply watershed
        Watershed_Algorithm wc = new Watershed_Algorithm();
        wc.run(waterShed, width, height);
        int regionID = 1;
        int maxCount = Integer.MIN_VALUE;
        Point p = null;
        short[] mark = new short[width * height];
        int countregs = 0;
View Full Code Here

            control.setProgress(z);
            if (control.isStopped()) {
                return;
            }
            Watershed_Algorithm wa = new Watershed_Algorithm();
            wa.run(stack.getSlice(z), stack.getWidth(), stack.getHeight());
        }
    }

    public String getName() {
        return "Watershed 2D";
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.