Examples of inverse()


Examples of Jama.Matrix.inverse()

                        cameraRGBWB[j][i] *= wb[i];

                Matrix B = new Matrix(ColorScience.chromaticAdaptation(daylightTemperature, originalTemperature, caMethod));
                Matrix combo = XYZtoRGB.times(B.times(RGBtoZYX));

                cameraRGBWB = combo.inverse().times(new Matrix(cameraRGBWB)).getArrayFloat();
            }
           
            cameraRGBCA = dcRaw.getCameraRGB();
            dcRaw.getDaylightMultipliers();

View Full Code Here

Examples of Jama.Matrix.inverse()

        for (int i = 0; i < 3; i++)
            for (int j = 0; j < 3; j++)
                mdata[i][j] = rgbXYZ[i][j];
        Matrix XYZRGB = new Matrix(mdata);

        float[][] S = new Matrix(new double[][] {{wtptXYZ[0], wtptXYZ[1], wtptXYZ[2]}}).times(XYZRGB.inverse()).getArrayFloat();

        return new float[][] {
            {S[0][0] * rgbXYZ[0][0], S[0][0] * rgbXYZ[0][1], S[0][0] * rgbXYZ[0][2]},
            {S[0][1] * rgbXYZ[1][0], S[0][1] * rgbXYZ[1][1], S[0][1] * rgbXYZ[1][2]},
            {S[0][2] * rgbXYZ[2][0], S[0][2] * rgbXYZ[2][1], S[0][2] * rgbXYZ[2][2]}
 
View Full Code Here

Examples of Jama.Matrix.inverse()

            {0, sXYZ[1] / tXYZ[1], 0},
            {0, 0, sXYZ[2] / tXYZ[2]}
        };

        // total tansform
        return B.times(new Matrix(diag)).times(B.inverse()).getArrayFloat();
    }

    public static double saturation(double r, double g, double b) {
        double min = Math.min(r, Math.min(g, b));
        double max = Math.max(r, Math.max(g, b));
View Full Code Here

Examples of aima.core.util.math.Matrix.inverse()

      O_tmd = e_tmd_to_t.get(0);
      // <b>f</b> <- FORWARD(<b>f</b>, e<sub>t-d</sub>)
      f = forward(f, O_tmd);
      // <b>B</b> <-
      // <b>O</b><sup>-1</sup><sub>t-d</sub><b>B</b><b>T</b><b>O</b><sub>t</sub>
      B = O_tmd.inverse().times(hmm.getTransitionModel().inverse())
          .times(B).times(hmm.getTransitionModel()).times(O_t);
    } else {
      // else <b>B</b> <- <b>BTO</b><sub>t</sub>
      B = B.times(hmm.getTransitionModel()).times(O_t);
    }
View Full Code Here

Examples of cc.redberry.core.combinatorics.Permutation.inverse()

        //0th is identity identity
        for (i = 1; i < resulting.length + 1; ++i) {
            current = symmetries.get(i).list;
            permutation = new int[size];
            for (j = 0; j < size; ++j)
                permutation[j] = sort.inverse().newIndexOf(current.get(sort.newIndexOf(j)));
            resulting[i - 1] = new Symmetry(permutation, symmetries.get(i).sign);
        }
        SimpleIndices simpleIndices = IndicesFactory.createSimple(indices);
        simpleIndices.getSymmetries().addAllUnsafe(resulting);
        return simpleIndices;
View Full Code Here

Examples of cern.colt.matrix.linalg.Algebra.inverse()

            {
                temp.set(i, j, D.get(i, j) - A.get(i, j));
            }
        }
        Algebra algebra = new Algebra();
        DoubleMatrix2D tempInverse = algebra.inverse(temp);
        DoubleMatrix2D T = new SparseDoubleMatrix2D(numVertices, numVertices);
        //compute "voltage" matrix
        for (int i = 0; i < numVertices - 1; i++)
        {
            for (int j = 0; j < numVertices - 1; j++)
View Full Code Here

Examples of com.bbn.openmap.proj.Proj.inverse()

        String response;

        try {
            int x = Integer.parseInt(requestProperties.getProperty(X));
            int y = Integer.parseInt(requestProperties.getProperty(Y));
            projection.setCenter(projection.inverse(x, y));
        } catch (Exception exc) {
            Debug.output("MSH: Invalid Azimuth");
        }

        response = Math.round(projection.getCenter().getLatitude() * 100.0)
 
View Full Code Here

Examples of com.bbn.openmap.proj.Projection.inverse()

    public void moveTo(Point loc) {}

    public RoadPoint addRoadPoint(int x, int y) {
        RoadLayer layer = road.getRoadLayer();
        Projection p = layer.getProjection();
        RoadPoint rp = new RoadPoint(road, p.inverse(x, y), layer);
        road.insertRoadPointAt(rp, index + 1);
        return rp;
    }

    public Road getRoad() {
View Full Code Here

Examples of com.bbn.openmap.proj.Projection.inverse()

                // process each column
                for (int x = sx; x < ex; x++) {

                    // inverse project x,y to lon,lat
                    projection.inverse(x, y, llp);

                    // get point values
                    float lat = llp.getLatitude();
                    float lon = llp.getLongitude();
View Full Code Here

Examples of com.bbn.openmap.proj.Projection.inverse()

                    paintRectangle(map, point1, point2);

                    // If rectangle is too small in both x and y then
                    // recenter the map
                    if ((dx < 5) && (dy < 5)) {
                        LatLonPoint llp = projection.inverse(e.getPoint());

                        boolean shift = e.isShiftDown();
                        boolean control = e.isControlDown();

                        if (control) {
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.