Package com.alkacon.simapi.filter.buffered

Examples of com.alkacon.simapi.filter.buffered.GaussianFilter.filter()


            if (((factor < 10.0) && (average < 1000))) {
                // image is quite small and suitable factor - use gaussian blur
                GaussianFilter gauss = new GaussianFilter();
                double radius = Math.sqrt(1.5 * factor);
                gauss.setRadius((float)radius);
                image = gauss.filter(image, null);
            } else {
                // image is rather large, use much faster box blur
                double root = Math.sqrt(0.75 * factor);
                int radius;
                if ((factor < 3.5) || (pixel > m_renderSettings.getMaximumBlurSize())) {
View Full Code Here


            if (((factor < 5.0) && (average < 1000))) {
                // image is quite small and suitable factor - use gaussian blur
                GaussianFilter gauss = new GaussianFilter();
                double radius = Math.sqrt(2.0 * factor);
                gauss.setRadius((float)radius);
                image = gauss.filter(image, null);
            } else {
                // image is rather large, use much faster box blur
                double root = Math.sqrt(factor);
                int radius;
                if ((factor < 3.5) || (pixel > m_renderSettings.getMaximumBlurSize())) {
View Full Code Here

            if ((factor < 5.0) && (average < 900)) {
                // image is quite small and suitable factor - use gaussian blur
                GaussianFilter gauss = new GaussianFilter();
                double radius = Math.sqrt(2.0 * factor);
                gauss.setRadius((float)radius);
                image = gauss.filter(image, null);
            } else {
                // image is rather large, use much faster box blur
                double root = Math.sqrt(factor);
                int radius;
                if (factor < 2.5) {
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.