Lines Matching refs:matrix

39  * in a <CODE>Raster</CODE>, using a specified matrix.
41 * The width of the matrix must be equal to the number of bands in the
43 * column in the matrix than the number of bands, there is an implied 1 at the
45 * of the matrix must be equal to the number of bands in the destination.
61 float[][] matrix;
67 * Constructs a <CODE>BandCombineOp</CODE> with the specified matrix.
68 * The width of the matrix must be equal to the number of bands in
70 * more column in the matrix than the number of bands, there is an implied
72 * height of the matrix must be equal to the number of bands in the
80 * @param matrix The matrix to use for the band combine operation.
84 public BandCombineOp (float[][] matrix, RenderingHints hints) {
85 nrows = matrix.length;
86 ncols = matrix[0].length;
87 this.matrix = new float[nrows][];
92 * matrix rows.
94 if (ncols > matrix[i].length) {
97 this.matrix[i] = Arrays.copyOf(matrix[i], ncols);
103 * Returns a copy of the linear combination matrix.
105 * @return The matrix associated with this band combine operation.
110 ret[i] = Arrays.copyOf(matrix[i], ncols);
116 * Transforms the <CODE>Raster</CODE> using the matrix specified in the
119 * the matrix. See the class comments for more details.
122 * equalling the number of rows in the matrix. No exception is thrown
132 * source or destination is incompatible with the matrix.
138 "matrix ("+ncols+
148 "matrix ("+nrows+
176 accum += matrix[r][c]*pixel[c];
194 accum += matrix[r][c]*pixel[c];
196 dstPixel[r] = (int) (accum+matrix[r][nBands]);
211 * bands in the source is incompatible with the matrix. See
220 * is incompatible with the matrix.
231 * bands in the source is incompatible with the matrix. See
242 "matrix ("+ncols+