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"
/* @briefITKBUFFER转QImage
* @param[in] hBuffer待转换的缓冲区结构体
*
* @briefConvert ITKBUFFER to QImage
* @param[in] hBufferThe buffer need to convert */
QImage ImageFromItkBuffer(ItkCamera *cam, ITKBUFFER hBuffer);
/* @brief获取采集卡的缓冲区数据转为QImage
* @param[in] cam包含采集卡设备句柄的相机指针
*
* @briefGet the buffer data of the grabber and convert to QImage
* @param[in] camCamera struct pointer */
QImage ImageFromGrabber(ItkCamera *cam);
#endif // FORMATCONVERT_H