jdbethun
July 8, 2005, 17:00:41
Hey guys,
We've had a Sony DFW X-710 camera w/ the IC Capture software for sometime now and have stumbled across some performance issues, at least for our application.
We're finding the snapImages function is taking between 10 and 120 ms. To test this, we're using MemBufferCollection of 10 (just to see correlation of removal and addition of new images to the collection), and calling the snapImages function at random times between 0 and 600 ms. As you'll see at the end of this message, the time to execute is quite variable, and for our application is not acceptible because it introduces jitter into our pictures (we're taking them from a moving vehicle so consistency is important). If there is anyway to ensure consistent performance please let me know ASAP.
Here's a code snippit:
for(j = 0; j < 50; j++){
random = nrand(600);
Sleep(random);
cout << "Slept for " << random << " milliseconds" << '\t';
//Time snapping
startTime = timeGetTime();
bool snapped = m_pGrabber->snapImages( 1, 200 );
finishTime = timeGetTime();
cout << "Snapping took: " << (finishTime - startTime)<< '\n';
//if image couldn't be snapped return any error
if(!snapped) {
return E_POINTER;
}
}
And the output:
Slept for 0 milliseconds Snapping took: 42
Slept for 341 milliseconds Snapping took: 57
Slept for 117 milliseconds Snapping took: 83
Slept for 490 milliseconds Snapping took: 109
Slept for 354 milliseconds Snapping took: 45
Slept for 291 milliseconds Snapping took: 111
Slept for 212 milliseconds Snapping took: 50
Slept for 543 milliseconds Snapping took: 55
Slept for 499 milliseconds Snapping took: 33
Slept for 453 milliseconds Snapping took: 13
Slept for 105 milliseconds Snapping took: 91
Slept for 521 milliseconds Snapping took: 11
Slept for 431 milliseconds Snapping took: 101
Slept for 311 milliseconds Snapping took: 88
Slept for 184 milliseconds Snapping took: 15
Slept for 9 milliseconds Snapping took: 57
Slept for 55 milliseconds Snapping took: 78
Slept for 221 milliseconds Snapping took: 44
Slept for 89 milliseconds Snapping took: 43
Slept for 100 milliseconds Snapping took: 99
Slept for 599 milliseconds Snapping took: 66
Slept for 270 milliseconds Snapping took: 61
Slept for 72 milliseconds Snapping took: 127
Slept for 2 milliseconds Snapping took: 63
Slept for 5 milliseconds Snapping took: 127
Slept for 229 milliseconds Snapping took: 36
Slept for 322 milliseconds Snapping took: 10
Slept for 346 milliseconds Snapping took: 53
Slept for 365 milliseconds Snapping took: 34
Slept for 368 milliseconds Snapping took: 31
Slept for 100 milliseconds Snapping took: 99
Slept for 402 milliseconds Snapping took: 63
Slept for 273 milliseconds Snapping took: 59
Slept for 213 milliseconds Snapping took: 52
Slept for 34 milliseconds Snapping took: 99
Slept for 368 milliseconds Snapping took: 31
Slept for 475 milliseconds Snapping took: 124
Slept for 487 milliseconds Snapping took: 112
Slept for 315 milliseconds Snapping took: 84
Slept for 183 milliseconds Snapping took: 17
Slept for 531 milliseconds Snapping took: 68
Slept for 440 milliseconds Snapping took: 25
Slept for 580 milliseconds Snapping took: 20
Slept for 561 milliseconds Snapping took: 39
Slept for 327 milliseconds Snapping took: 68
Slept for 86 milliseconds Snapping took: 46
Slept for 280 milliseconds Snapping took: 120
Slept for 142 milliseconds Snapping took: 56
Slept for 523 milliseconds Snapping took: 76
Slept for 127 milliseconds Snapping took: 70
Thanks,
Jeff Bethune
Product Development Manager
Tannery Creek Systems
We've had a Sony DFW X-710 camera w/ the IC Capture software for sometime now and have stumbled across some performance issues, at least for our application.
We're finding the snapImages function is taking between 10 and 120 ms. To test this, we're using MemBufferCollection of 10 (just to see correlation of removal and addition of new images to the collection), and calling the snapImages function at random times between 0 and 600 ms. As you'll see at the end of this message, the time to execute is quite variable, and for our application is not acceptible because it introduces jitter into our pictures (we're taking them from a moving vehicle so consistency is important). If there is anyway to ensure consistent performance please let me know ASAP.
Here's a code snippit:
for(j = 0; j < 50; j++){
random = nrand(600);
Sleep(random);
cout << "Slept for " << random << " milliseconds" << '\t';
//Time snapping
startTime = timeGetTime();
bool snapped = m_pGrabber->snapImages( 1, 200 );
finishTime = timeGetTime();
cout << "Snapping took: " << (finishTime - startTime)<< '\n';
//if image couldn't be snapped return any error
if(!snapped) {
return E_POINTER;
}
}
And the output:
Slept for 0 milliseconds Snapping took: 42
Slept for 341 milliseconds Snapping took: 57
Slept for 117 milliseconds Snapping took: 83
Slept for 490 milliseconds Snapping took: 109
Slept for 354 milliseconds Snapping took: 45
Slept for 291 milliseconds Snapping took: 111
Slept for 212 milliseconds Snapping took: 50
Slept for 543 milliseconds Snapping took: 55
Slept for 499 milliseconds Snapping took: 33
Slept for 453 milliseconds Snapping took: 13
Slept for 105 milliseconds Snapping took: 91
Slept for 521 milliseconds Snapping took: 11
Slept for 431 milliseconds Snapping took: 101
Slept for 311 milliseconds Snapping took: 88
Slept for 184 milliseconds Snapping took: 15
Slept for 9 milliseconds Snapping took: 57
Slept for 55 milliseconds Snapping took: 78
Slept for 221 milliseconds Snapping took: 44
Slept for 89 milliseconds Snapping took: 43
Slept for 100 milliseconds Snapping took: 99
Slept for 599 milliseconds Snapping took: 66
Slept for 270 milliseconds Snapping took: 61
Slept for 72 milliseconds Snapping took: 127
Slept for 2 milliseconds Snapping took: 63
Slept for 5 milliseconds Snapping took: 127
Slept for 229 milliseconds Snapping took: 36
Slept for 322 milliseconds Snapping took: 10
Slept for 346 milliseconds Snapping took: 53
Slept for 365 milliseconds Snapping took: 34
Slept for 368 milliseconds Snapping took: 31
Slept for 100 milliseconds Snapping took: 99
Slept for 402 milliseconds Snapping took: 63
Slept for 273 milliseconds Snapping took: 59
Slept for 213 milliseconds Snapping took: 52
Slept for 34 milliseconds Snapping took: 99
Slept for 368 milliseconds Snapping took: 31
Slept for 475 milliseconds Snapping took: 124
Slept for 487 milliseconds Snapping took: 112
Slept for 315 milliseconds Snapping took: 84
Slept for 183 milliseconds Snapping took: 17
Slept for 531 milliseconds Snapping took: 68
Slept for 440 milliseconds Snapping took: 25
Slept for 580 milliseconds Snapping took: 20
Slept for 561 milliseconds Snapping took: 39
Slept for 327 milliseconds Snapping took: 68
Slept for 86 milliseconds Snapping took: 46
Slept for 280 milliseconds Snapping took: 120
Slept for 142 milliseconds Snapping took: 56
Slept for 523 milliseconds Snapping took: 76
Slept for 127 milliseconds Snapping took: 70
Thanks,
Jeff Bethune
Product Development Manager
Tannery Creek Systems