⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imager32.h

📁 VC写的harris角点检测程序。又名plessey
💻 H
字号:
#ifndef __IMAGER32_H__
#define __IMAGER32_H__

#ifdef __cplusplus
extern "C" {
#endif	// __cplusplus

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_InitHW(void);
//  Purpose:	Initialize Imager32.DLL.
//  Parameter:	none.
//  Return:		True if successful, False if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
void WINAPI PV_DeInitHW();
//  Purpose:	Close Imager32.DLL.
//  Parameter:	none.
//  Return:		Success if successful, False if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
//ErrorCode WINAPI PV_SetImage ( ColFmt aFormat );
//  Purpose:	Set the color format of the capture buffer
//  Parameter:	aFormat - color format.
//  Return:		Success if successful, False if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
//**int WINAPI PV_GetImageFormat ( ColFmt *aFormat );
//  Purpose:	Get the color format of the capture buffer
//  Parameter:	aFormat - color format.
//  Return:		.
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetVideoSource( short conn );
//  Purpose:	Set the video source
//  Parameter:	conn 0-AV1, 1-AV2, 2-SVIDEO
//  Return:     TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
short WINAPI PV_GetVideoSource(void);
//  Purpose:	Get the video source
//  Parameter:	None
//  Return:   -1 if fail. 0-AV1, 1-AV2, 2-SVIDEO
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetBrightness( int brightness );
//  Purpose:	Set the brightness value
//  Parameter:	Int-brightness values (0-255)
//  Return:	TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetBrightness( int * brightness );
//  Purpose:	Get the brightness value
//  Parameter:	Int-brightness values (0-255)
//  Return:	TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetContrast( int contrast );
//  Purpose:	Set the Contrast value
//  Parameter:	Int-contrast (0-255)
//  Return:     TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetContrast( int * contrast );
//  Purpose:	Get the Contrast value
//  Parameter:	Int-contrast (0-255)
//  Return:     TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetHue( int hue );
//  Purpose:	Set the Hue value
//  Parameter:	Int-Hue (0-255)
//  Return:     TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetHue( int * hue );
//  Purpose:	Get the Hue value
//  Parameter:	Int-hue (0-255)
//  Return:     TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetSaturation( int sat );
//  Purpose:	Set the Saturation value
//  Parameter:	Int-sat (0-255)
//  Return:     TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_GetSaturation( int * sat );
//  Purpose:	Get the Saturation value
//  Parameter:	Int-sat (0-255)
//  Return:     TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SetVideoFormat(short vs);
//  Purpose:	Set the video format
//  Parameter:	vs 0 - VFormat_AutoDetect, 1 - VFormat_NTSC
//                 2 - VFormat_NTSC_J,     3 - VFormat_PAL_BDGHI
//                 4 - VFormat_PAL_M,      5 - VFormat_PAL_N
//                 6 - VFormat_SECAM
//  Return: TRUE if successful, FALSE if fail.
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
short WINAPI PV_GetVideoFormat(void);
//  Purpose:	Get the video format
//  Parameter:	None
//  Return:     -1 if fail.
//                 0 - VFormat_AutoDetect, 1 - VFormat_NTSC
//                 2 - VFormat_NTSC_J,     3 - VFormat_PAL_BDGHI
//                 4 - VFormat_PAL_M,      5 - VFormat_PAL_N
//                 6 - VFormat_SECAM
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_SaveJPG(LPCTSTR FileName);
//  Purpose:	JPG格式存储
//  Parameter:	FileName: 文件名称
//  Remark:     在使用此函数前,须调用PV980DFG Freeze函数
//  Return:     True if Success.
//              False if fail 
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
bool WINAPI PV_DibToJPG(LPCTSTR FileName, HBITMAP hBitmap);
//  Purpose:	JPG格式存储
//  Parameter:	 FileName: 文件名称
//                hBitmap: 位图
//  Return:     True if Success.
//              False if fail 
//////////////////////////////////////////////////////////////////////////////


#ifdef __cplusplus
}
#endif	// __cplusplus

#endif	// __IMAGER32_H__







⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -