Package net.algart.math.functions

Examples of net.algart.math.functions.LinearOperator


                    Matrix.ContinuationMode.getConstantMode(outsideValue(actualFrames)));
            }
            if (p instanceof UniversalFramePosition
                && ((UniversalFramePosition)p).inverseTransform() instanceof LinearOperator)
            {
                LinearOperator inverseTransform = (LinearOperator)((UniversalFramePosition)p).inverseTransform();
//                System.out.println("1 frame branch: linear operator " + inverseTransform);
                LinearOperator shift = LinearOperator.getShiftInstance(area.min().coordinates());
                LinearOperator lo = shift.superposition(inverseTransform);
                Func f = Matrices.asInterpolationFunc(m, Matrices.InterpolationMethod.POLYLINEAR_FUNCTION,
                    outsideValue(actualFrames));
                f = lo.apply(f);
                return Matrices.asCoordFuncMatrix(f, requiredType, dimensions);
            }
        }
        if (integerShiftPositions && stitchingMethod instanceof CoordinateFreeStitchingMethod<?>) {
//            System.out.println("coordinate free branch: combining submatrices");
View Full Code Here


        private Affine2DNearestStitchingFunc(List<? extends Frame<P>> frames) {
            super(frames);
            this.a = new double[this.inverseTransforms.length][];
            this.b = new double[this.inverseTransforms.length][];
            for (int k = 0; k < this.inverseTransforms.length; k++) {
                LinearOperator lo = (LinearOperator)this.inverseTransforms[k];
                assert lo.n() == 2;
                this.a[k] = lo.a();
                this.b[k] = lo.b();
            }
            this.a0 = this.inverseTransforms.length >= 1 ? this.a[0] : null;
            this.a1 = this.inverseTransforms.length >= 2 ? this.a[1] : null;
            this.a2 = this.inverseTransforms.length >= 3 ? this.a[2] : null;
            this.a3 = this.inverseTransforms.length >= 4 ? this.a[3] : null;
View Full Code Here

        private Affine2DWeighedStitchingFunc(List<? extends Frame<P>> frames) {
            super(frames);
            this.a = new double[this.inverseTransforms.length][];
            this.b = new double[this.inverseTransforms.length][];
            for (int k = 0; k < this.inverseTransforms.length; k++) {
                LinearOperator lo = (LinearOperator)this.inverseTransforms[k];
                assert lo.n() == 2;
                this.a[k] = lo.a();
                this.b[k] = lo.b();
            }
            this.a0 = this.inverseTransforms.length >= 1 ? this.a[0] : null;
            this.a1 = this.inverseTransforms.length >= 2 ? this.a[1] : null;
            this.a2 = this.inverseTransforms.length >= 3 ? this.a[2] : null;
            this.a3 = this.inverseTransforms.length >= 4 ? this.a[3] : null;
View Full Code Here

TOP

Related Classes of net.algart.math.functions.LinearOperator

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.