Package javax.media.jai

Examples of javax.media.jai.WarpPolynomial


         * Checks Warp properties.
         */
        final Warp warp = transform.getWarp();
        assertTrue("Expected a polynomial warp but got " + Classes.getShortClassName(warp),
                   warp instanceof WarpPolynomial);
        final WarpPolynomial poly = (WarpPolynomial) warp;
        /*
         * Compares transformations to the expected points.
         */
        for (int i=0; i<sources.length; i++) {
            final String  message  = formula.message() + " Point #" + i;
View Full Code Here


        final int[] scalesX = {1,2,3,4,5,62,7,3,1,8};
        final int[] scalesY = {1,2,3,4,5,66,2,5,9,1};
        for (int i=0; i<scalesX.length; i++) {
            final int scaleX = scalesX[i];
            final int scaleY = scalesY[i];
            final WarpPolynomial warp = executeTest(new Formula() {
                public String message() {
                    return "WarpAffine[" + scaleX + ',' + scaleY + ']';
                }
                public void transform(final Point point) {
                    point.x *= scaleX;
View Full Code Here

        final int[] scalesX = {1,2,3,4,5,62,7,3,1,8};
        final int[] scalesY = {1,2,3,4,5,66,2,5,9,1};
        for (int i=0; i<scalesX.length; i++) {
            final int scaleX = scalesX[i];
            final int scaleY = scalesY[i];
            final WarpPolynomial warp = executeTest(new Formula() {
                public String message() {
                    return "WarpQuadratic[" + scaleX + ',' + scaleY + ']';
                }
                public void transform(final Point point) {
                    point.x *= scaleX*point.x;
 
View Full Code Here

TOP

Related Classes of javax.media.jai.WarpPolynomial

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.