microsoft / HoloLens2ForCV

Sample code and documentation for using the Microsoft HoloLens 2 for Computer Vision research.
MIT License
489 stars 145 forks source link

Exposure time and gain #77

Open murrdpirate opened 3 years ago

murrdpirate commented 3 years ago

The IResearchModeSensorVLCFrame provides access to the current exposure time and gain (which are both controlled automatically). I'm able to record this data, but I was hoping for some help interpreting it.

The exposure time is a UINT64 and outputs values between 10,000 (in sunlight) and 5,990,000 (in relatively dim areas). The best guess I have comes from looking at image timestamps, which are also UINT64 and appear to be 1E-7 seconds (timestamps of images increment by about 330,000). But that would make the exposure time up to 0.599 seconds, which seems too high. Maybe it's 1E-8?

The gain value is a UINT32 and outputs values between about 16 and 106 in my limited test. I wasn't sure how to interpret this value. Ultimately, I'm hoping to use this information to perform a photometric calibration and recover (roughly proportional) radiance values.