www.pudn.com > try2LPR-1.0.rar > LPRHelper.h


/* 
* Copyright (c) 2003, try2it.com 
* All rights reserved. 
* 
* This program is free software; you can redistribute it and/or modify it under 
* the terms of the GNU General Public License as published by the Free Software 
* Foundation; either version 2 of the License, or (at your option) any later 
* version. 
*  
* This program is distributed in the hope that it will be useful, but WITHOUT 
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 
* details. 
*  
* You should have received a copy of the GNU General Public License along with 
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple 
* Place - Suite 330, Boston, MA 02111-1307, USA. 
* 
* 文件名称:LPRHelper.h 
* 文件标识:LPR-02-04 
* 摘要:牌照识别的内部助手函数 
* 
* 当前版本:1.0 
* 作者:try2it.com 
* 开始日期:2003年09月27日 
* 完成日期:2003年09月30日 
*/ 
#ifndef _LPRHELPER_H_ 
#define _LPRHELPER_H_ 
 
typedef struct _MemNode MemNode; 
typedef struct _MemNode *PMemNode; 
struct _MemNode 
{ 
	PMemNode next; 
	PMemNode prev; 
	BYTE *pMem; 
}; 
 
#if (defined(__cplusplus) || defined(c_plusplus)) 
extern  "C" { 
#endif 
 
int LoadImgToArray(PColorImg pColorImg, BYTE *pImgBuff); 
 
int ColorImg_Malloc(PColorImg pColorImg, int Width, int Height); 
 
int GrayImg_Malloc(PGrayImg pGrayImg, int Width, int Height); 
 
int ColorImg_Free(PColorImg pColorImg); 
 
int GrayImg_Free(PGrayImg pGrayImg); 
 
int _InsertMemNode(BYTE *pMem); 
 
int _FreeMemNode(BYTE *pMem); 
 
int FreeAllMemNode(); 
 
int ShowImg(HDC hdc, PColorImg pColorImg); 
 
TGrayImg ColorToGray(TColorImg ColorImg); 
 
TColorImg GrayToColor(TGrayImg GrayImg); 
 
#if (defined(__cplusplus) || defined(c_plusplus)) 
} 
#endif 
 
#endif /* _LPRHELPER_H_ */