22 lines
670 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef FORMATCONVERT_H
#define FORMATCONVERT_H
#include <QImage>
#include "ItkCamera.h"
/* @brief:ITKBUFFER转QImage
* @param[in] hBuffer:待转换的缓冲区结构体
*
* @brief:Convert ITKBUFFER to QImage
* @param[in] hBuffer:The buffer need to convert */
QImage ImageFromItkBuffer(ItkCamera *cam, ITKBUFFER hBuffer);
/* @brief:获取采集卡的缓冲区数据,转为QImage
* @param[in] cam:包含采集卡设备句柄的相机指针
*
* @brief:Get the buffer data of the grabber and convert to QImage
* @param[in] cam:Camera struct pointer */
QImage ImageFromGrabber(ItkCamera *cam);
#endif // FORMATCONVERT_H