25 lines
652 B
C++
25 lines
652 B
C++
#include <opencv2/core.hpp>
|
|
#include <opencv2/highgui.hpp>
|
|
#include <opencv2/imgcodecs.hpp>
|
|
#include <opencv2/imgproc.hpp>
|
|
|
|
#include "ImageProcessor.hpp"
|
|
|
|
using namespace cv;
|
|
|
|
void ImageProcessor::ProcessImage(uint32_t width, uint32_t height, uint8_t *imgPointer)
|
|
{
|
|
Mat frame(height, width, CV_16U, imgPointer, Mat::AUTO_STEP);
|
|
|
|
//normalize(frame, scaled, 0, 255, NORM_MINMAX);
|
|
//scaled.convertTo(scaled, CV_8UC1);
|
|
|
|
//applyColorMap(scaled, color, COLORMAP_JET);
|
|
|
|
//namedWindow("FLIR", WINDOW_AUTOSIZE);
|
|
//imshow("FLIR", color);
|
|
int key = waitKey(1);
|
|
//if key == 27, then break
|
|
//release()
|
|
//destroyAllWindows()
|
|
} |