Package com.googlecode.javacpp

Examples of com.googlecode.javacpp.Pointer


        imageWidth = cvReadIntByName(fs, fn, "imageWidth", imageWidth);
        imageHeight = cvReadIntByName(fs, fn, "imageHeight", imageHeight);
        getSettings().setResponseGamma(cvReadRealByName(fs, fn, "gamma", getSettings().getResponseGamma()));
//        getSettings().initAspectRatio = cvReadRealByName(fs, fn, "initAspectRatio", getSettings().initAspectRatio);
//        getSettings().flags = cvReadIntByName(fs, fn, "flags", getSettings().flags);
        Pointer p = cvReadByName(fs, fn, "cameraMatrix", a);
        cameraMatrix = p == null ? null : new CvMat(p);
        p = cvReadByName(fs, fn, "distortionCoeffs", a);
        distortionCoeffs = p == null ? null : new CvMat(p);
        p = cvReadByName(fs, fn, "extrParams", a);
        extrParams = p == null ? null : new CvMat(p);
View Full Code Here


        CvSeq seq = node.data_seq();
        int count = seq.total();

        ProjectorDevice[] devices = new ProjectorDevice[count];
        for (int i = 0; i < count; i++) {
            Pointer p = cvGetSeqElem(seq, i);
            if (p == null) continue;
            String name = cvReadString(new CvFileNode(p), null);
            devices[i] = new ProjectorDevice(name, fs);
        }
        return devices;
View Full Code Here

        CvSeq seq = node.data_seq();
        int count = seq.total();

        CameraDevice[] devices = new CameraDevice[count];
        for (int i = 0; i < count; i++) {
            Pointer p = cvGetSeqElem(seq, i);
            if (p == null) continue;
            String name = cvReadString(new CvFileNode(p), null);
            devices[i] = new CameraDevice(name, fs);
        }
        return devices;
View Full Code Here

                // CvPoint* line = (CvPoint*)cvGetSeqElem(lines,i);
                // CvPoint first=line[0], second=line[1]
                // is:
                // CvPoint first=line.position(0), secon=line.position(1);

                Pointer line = cvGetSeqElem(lines, i);
                CvPoint pt1  = new CvPoint(line).position(0);
                CvPoint pt2  = new CvPoint(line).position(1);

                System.out.println("Line spotted: ");
                System.out.println("\t pt1: " + pt1);
View Full Code Here

TOP

Related Classes of com.googlecode.javacpp.Pointer

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.