Subversion Repositories seema-scanner

Rev

Rev 1 | Rev 28 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 3
Line 78... Line 78...
78
        // Check parameters
78
        // Check parameters
79
        if (nlhs < 1 || nrhs > 2)
79
        if (nlhs < 1 || nrhs > 2)
80
            mexErrMsgTxt("getSingleFrame: Unexpected arguments.");
80
            mexErrMsgTxt("getSingleFrame: Unexpected arguments.");
81
        // Call the method
81
        // Call the method
82
        CameraFrame frame = Camera_instance->getSingleFrame();
82
        CameraFrame frame = Camera_instance->getSingleFrame();
83
        plhs[0] = mxCreateNumericMatrix(frame.width, frame.height, mxUINT8_CLASS, 0);
83
        plhs[0] = mxCreateNumericMatrix(frame.width, frame.height, mxUINT8_CLASS, mxREAL);
84
        memcpy(mxGetData(plhs[0]), frame.memory, frame.height*frame.width);
84
        memcpy(mxGetData(plhs[0]), frame.memory, frame.height*frame.width);
85
        //Camera_instance->unlockFrame();
85
        //Camera_instance->unlockFrame();
86
        return;
86
        return;
87
    }
87
    }
88
//     // SetGamma
-
 
89
//     if (!strcmp("SetGamma", cmd)) {
-
 
90
//         // Check parameters
-
 
91
//         if (nlhs < 0 || nrhs < 2)
-
 
92
//             mexErrMsgTxt("SetGamma: Unexpected arguments.");
-
 
93
//         // Call the method
-
 
94
//         float gamma = (float)mxGetScalar(prhs[2]);
-
 
95
//         nProjector_instance->SetGamma(gamma);
-
 
96
//         return;
-
 
97
//     }
-
 
98
//    // Test
88
//    // Test
99
//    if (!strcmp("test", cmd)) {
89
//    if (!strcmp("test", cmd)) {
100
//        // Check parameters
90
//        // Check parameters
101
//        if (nlhs < 0 || nrhs < 2)
91
//        if (nlhs < 0 || nrhs < 2)
102
//            mexErrMsgTxt("Test: Unexpected arguments.");
92
//            mexErrMsgTxt("Test: Unexpected arguments.");