Hi everyone,
This may be useful for some of you here - I've submitted a
pull request to OpenCV adding Y16 support in Windows/DirectShow. TLDR you can now capture raw thermal data without needing modified versions of libuvc and/or switching drivers. My motivation was to get images out of a FLIR Boson, but it should also work with the PureThermal or any other machine vision camera that supports Y16.
To use it you need to force OpenCV to use dshow:
cv::VideoCapture cap(0 + cv::CAP_DSHOW)
then set the options:
cap.set(cv::CAP_PROP_FOURCC, cv::VideoWriter::fourcc('Y','1','6',' '));
cap.set(cv::CAP_PROP_CONVERT_RGB, true);
You need to turn of RGB conversion. This is more of a standards compliance thing with OpenCV, image capture devices should return RGB images by default. If you don't do this, you'll get a grey RGB image (which is just an 8-bit scaled version of the raw data).
Happy imaging!