Examples of intMatrix()


Examples of ptolemy.data.IntMatrixToken.intMatrix()

                || (message.getColumnCount() != _imageColumns)) {
            throw new IllegalActionException("Input data must be imageRows "
                    + "by imageColumns");
        }

        int[][] image = message.intMatrix();

        for (j = 0, partitionNumber = 0; j < _imageRows; j += _partitionRows) {
            for (i = 0; i < _imageColumns; i += _partitionColumns, partitionNumber++) {
                for (y = 0; y < _partitionRows; y++) {
                    System.arraycopy(image[j + y], i, _part[y], 0,
View Full Code Here

Examples of ptolemy.data.IntMatrixToken.intMatrix()

        int j;
        int[][] frame;
        int frameElement;

        IntMatrixToken message = (IntMatrixToken) input.get(0);
        frame = message.intMatrix();

        // Construct a color distribution histogram for the input image:
        // Assuming the color bound for the input 0 and 255. If color detected
        // that has color either bigger than 255 OR small than 0, then throw an
        // illegal action exception.
View Full Code Here

Examples of ptolemy.data.IntMatrixToken.intMatrix()

                    throw new IllegalActionException(
                            "input data must be partitionRows "
                                    + "by partitionColumns");
                }

                int[][] part = partition.intMatrix();

                for (y = 0; y < _partitionRows; y++) {
                    System.arraycopy(part[y], 0, _image[j + y], i,
                            _partitionColumns);
                }
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.