Subversion Repositories seema-scanner

Rev

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

Rev 27 Rev 28
Line 262... Line 262...
262
}
262
}
263
 
263
 
264
 
264
 
265
size_t CameraPointGrey::getFrameSizeBytes(){
265
size_t CameraPointGrey::getFrameSizeBytes(){
266
    
266
    
-
 
267
    FlyCapture2::Format7ImageSettings format7Settings;
-
 
268
    cam.GetFormat7Configuration(&format7Settings, NULL, NULL);
-
 
269
 
267
    return 3376*2704*3;
270
    return format7Settings.height*format7Settings.width*3;
268
}
271
}
269
 
272
 
270
size_t CameraPointGrey::getFrameWidth(){
273
size_t CameraPointGrey::getFrameWidth(){
271
 
274
 
272
    // How do we poll this from the camera?
275
    FlyCapture2::Format7ImageSettings format7Settings;
273
    return 3376;
276
    cam.GetFormat7Configuration(&format7Settings, NULL, NULL);
274
 
277
 
-
 
278
    return format7Settings.width;
275
}
279
}
276
 
280
 
277
size_t CameraPointGrey::getFrameHeight(){
281
size_t CameraPointGrey::getFrameHeight(){
278
 
282
 
279
    // How do we poll this from the camera?
283
    FlyCapture2::Format7ImageSettings format7Settings;
-
 
284
    cam.GetFormat7Configuration(&format7Settings, NULL, NULL);
-
 
285
 
280
    return 2704;
286
    return format7Settings.height;
281
 
287
 
282
}
288
}
283
 
289
 
284
 
290
 
285
CameraPointGrey::~CameraPointGrey(){
291
CameraPointGrey::~CameraPointGrey(){