Add Simple Image Processor
This commit is contained in:
25
ImageProcessor.cpp
Normal file
25
ImageProcessor.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#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()
|
||||
}
|
||||
Reference in New Issue
Block a user