You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
535 B
33 lines
535 B
#pragma once
|
|
#include <opencv2/opencv.hpp>
|
|
|
|
class SimTargetImage_Y16
|
|
{
|
|
|
|
public:
|
|
SimTargetImage_Y16(int w,int h);
|
|
~SimTargetImage_Y16();
|
|
|
|
|
|
public:
|
|
void setBackGround(int gray,int std);
|
|
void addTarget(int x, int y, int w, int h, int gray);
|
|
|
|
// 获取Y16数据
|
|
unsigned short* getImageData();
|
|
|
|
cv::Mat getMatRGB();
|
|
private:
|
|
cv::Mat Y8Mat;//显示图像
|
|
unsigned short* pSrc;
|
|
int nImageWidth;
|
|
int nImageHeight;
|
|
};
|
|
|
|
|
|
|
|
|
|
// 16位调光
|
|
void Map16BitTo8Bit(unsigned short* psh16BitData, long lDataLen, unsigned char* pby8BitData);
|
|
|