Package net.sourceforge.watershed

Examples of net.sourceforge.watershed.Watershed_Algorithm


        // want the watershed to grow into the background
        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


            if (control.getSlice(z)[i] == 0)
                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

        for (int z = 0; z < stack.getDepth(); z++) {
            control.setProgress(z);
            if (control.isStopped()) {
                return;
            }
            Watershed_Algorithm wa = new Watershed_Algorithm();
            wa.run(stack.getSlice(z), stack.getWidth(), stack.getHeight());
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.watershed.Watershed_Algorithm

Copyright © 2018 www.massapicom. 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.