Subversion Repositories seema-scanner

Rev

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

Rev 113 Rev 114
Line 84... Line 84...
84
//        PrintError(error);
84
//        PrintError(error);
85
 
85
 
86
    // Configure Format7 mode
86
    // Configure Format7 mode
87
    FlyCapture2::Format7ImageSettings format7Settings;
87
    FlyCapture2::Format7ImageSettings format7Settings;
88
    format7Settings.mode = FlyCapture2::MODE_0;
88
    format7Settings.mode = FlyCapture2::MODE_0;
89
    format7Settings.pixelFormat = FlyCapture2::PIXEL_FORMAT_RAW16;
89
    format7Settings.pixelFormat = FlyCapture2::PIXEL_FORMAT_RAW8;
90
    format7Settings.width = 3376;
90
    format7Settings.width = 3376;
91
    format7Settings.height = 2704;
91
    format7Settings.height = 2704;
92
    format7Settings.offsetX = 0;
92
    format7Settings.offsetX = 0;
93
    format7Settings.offsetY = 0;
93
    format7Settings.offsetY = 0;
94
 
94
 
Line 150... Line 150...
150
    if (error != FlyCapture2::PGRERROR_OK)
150
    if (error != FlyCapture2::PGRERROR_OK)
151
        PrintError(error);
151
        PrintError(error);
152
 
152
 
153
    // Set white balance to match LED projector
153
    // Set white balance to match LED projector
154
    property.type = FlyCapture2::WHITE_BALANCE;
154
    property.type = FlyCapture2::WHITE_BALANCE;
155
    property.onOff = true;
155
    property.onOff = false;
156
    property.absControl = false;
156
    property.absControl = false;
157
    property.autoManualMode = false;
157
    property.autoManualMode = false;
158
    property.valueA = 666; //red
158
    property.valueA = 666; //red
159
    property.valueB = 777; //blue
159
    property.valueB = 777; //blue
160
    error = cam.SetProperty(&property);
160
    error = cam.SetProperty(&property);
Line 318... Line 318...
318
}
318
}
319
 
319
 
320
size_t CameraPointGrey::getFrameWidth(){
320
size_t CameraPointGrey::getFrameWidth(){
321
 
321
 
322
    FlyCapture2::Format7ImageSettings format7Settings;
322
    FlyCapture2::Format7ImageSettings format7Settings;
-
 
323
    unsigned int dummy1;
-
 
324
    float dummy2;
323
    cam.GetFormat7Configuration(&format7Settings, NULL, NULL);
325
    FlyCapture2::Error error = cam.GetFormat7Configuration(&format7Settings, &dummy1, &dummy2);
-
 
326
    if (error != FlyCapture2::PGRERROR_OK)
-
 
327
        PrintError(error);
324
 
328
 
325
    return format7Settings.width;
329
    return format7Settings.width;
326
}
330
}
327
 
331
 
328
size_t CameraPointGrey::getFrameHeight(){
332
size_t CameraPointGrey::getFrameHeight(){
329
 
333
 
330
    FlyCapture2::Format7ImageSettings format7Settings;
334
    FlyCapture2::Format7ImageSettings format7Settings;
-
 
335
    unsigned int dummy1;
-
 
336
    float dummy2;
331
    cam.GetFormat7Configuration(&format7Settings, NULL, NULL);
337
    FlyCapture2::Error error = cam.GetFormat7Configuration(&format7Settings, &dummy1, &dummy2);
-
 
338
    if (error != FlyCapture2::PGRERROR_OK)
-
 
339
        PrintError(error);
332
 
340
 
333
    return format7Settings.height;
341
    return format7Settings.height;
334
 
342
 
-
 
343
 
335
}
344
}
336
 
345
 
337
 
346
 
338
CameraPointGrey::~CameraPointGrey(){
347
CameraPointGrey::~CameraPointGrey(){
339
 
348