I have a FLIR purethermal 3 module. I can get the video frame using OpenCV VideoCap in c++. How can I convert this OpenCV Mat data to actual temperature value?
#include<iostream>
#include<opencv2/core/core.hpp>
#include<opencv2/videoio/videoio.hpp>
#include<opencv2/highgui/highgui.hpp>usingnamespacestd;usingnamespacecv;intmain()
{
VideoCapture cap(0);
if (!cap.isOpened())
{
cout << "Cannot open camera\n";
return1;
}
Mat frame;
while (true)
{
bool ret = cap.read(frame);
if (!ret)
{
cout << "Can't receive frame (stream end?). Exiting ...\n";
break;
}
imshow("live", frame);
if (waitKey(1) == 'q')
{
break;
}
}
return0;
}
I have a FLIR purethermal 3 module. I can get the video frame using OpenCV VideoCap in c++. How can I convert this OpenCV Mat data to actual temperature value?