Embedded timestamps to Point Grey PGE Blackfly 50S5C cameras #1825
Unanswered
MariaBjoernestad
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I assume you are saving the pictures with Bonsai? Have you tried to use the spinnaker software to validate the approach first? I am not sure if, depending on the encoding you use, those pixel's information will be preserved. Alternatively, you can use the metadata attached to each frame that is exposed via the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We have images from two Point Grey PGE Blackfly 50S5C cameras, and I'm trying to take out the embedded timestamps from the first four pixels in the images. I'm uising the example code found at https://www.flir.eu/support-center/iis/machine-vision/knowledge-base/imaging-products-timestamping-and-different-timestamp-mechanisms/, which look like (in cpp):
imageTimeStampToSeconds(unsigned int uiRawTimestamp)
{
int nSecond = (uiRawTimestamp >> 25) & 0x7F; // get rid of cycle_* - keep 7 bits
int nCycleCount = (uiRawTimestamp >> 12) & 0x1FFF; // get rid of offset 13
int nCycleOffset = (uiRawTimestamp >> 0) & 0xFFF; // get rid of *_count 12
return (double)nSecond + (((double)nCycleCount+((double)nCycleOffset/3072.0))/8000.0);
}
The calculated timestamps are not correct, that is, the timestamps are not sorted in the right way. Any suggestions to do this in a better way?
Beta Was this translation helpful? Give feedback.
All reactions