www.pudn.com > roadextr.rar > WMlib.h


///// DCT Q Table for quantilization 
//static int pDCT_Q[] = { 16, 11, 10, 16, 24, 40, 51, 61, 
//						12, 12, 14, 19, 26, 58, 60, 55, 
//					    14, 13, 16, 24, 40, 57, 69, 56, 
//						14, 17, 22, 29, 51, 87, 80, 62, 
//					    18, 22, 37, 56, 68, 109,103,77, 
//					    24, 35, 55, 64, 81, 104,113,92, 
//					    49, 64, 78, 87, 103,121,120,101, 
//						72, 92, 95, 98, 112,100,103,99 
//						}; 
// 
//void	GetImgWinNN(BYTE	*pucI,int	nRow,int	nCol, 
//					BYTE	*pucD,int	N,int	RR,int	CC); 
// 
//void	PutImgWinNN(BYTE	*pucI,int	nRow,int	nCol, 
//					BYTE	*pucD,int	N,int	RR,int	CC); 
// 
//void	GetImgWinNN_2(BYTE	*pucI,int	nRow,int	nCol, 
//					BYTE	*pucD,int	N,int	RR,int	CC); 
// 
//void	PutImgWinNN_2(BYTE	*pucI,int	nRow,int	nCol, 
//					BYTE	*pucD,int	N,int	RR,int	CC); 
// 
// 
//void	DCT(BYTE	*pucI,float	*pfDCT,int	nN); 
// 
///// void	I_DCT(BYTE	*pucDCT,BYTE	*pucI_DCT,int	nN); 
//void	I_DCT(float	*pfDCT,BYTE	*pucI_DCT,int	nN); 
// 
// 
// 
//bool	PRSGenAlgo_0(BYTE	bytDataSize, 
//					 BYTE	*pbytKey,int	nKeySize, 
//					 BYTE	*pbytOutput); 
// 
//bool	ReGenerateWIByPRSGenAlgo_0(BYTE	*pbytWI,int	nRow,int	nCol, 
//				   BYTE	*pbytKey,int	nKeySize, 
//				   BYTE	*pbytWI_O,bool	bDeGen); 
 
double	Sig_Correlation(BYTE *pucImgBlkData,BYTE *pucTemplateData, 
						DWORD dwDataSize); 
 
//void	Convert1ByteTo8Bytes_01(BYTE	bytB,BYTE	*pucO); 
// 
//BYTE	Convert8ByteTo1Bytes(BYTE	*pucBYTES); 
// 
//void	FormSimpleThinnedImg(BYTE	*pucImg,int	nRow,int nCol,int	nBanchL); 
// 
//bool	EmbedBitsInLines_SpDomain(BYTE	*pucOrI,int	nRow,int nCol, 
//								  BYTE	*pucBinI,BYTE	*pucBits, 
//								  int	nBitsC); 
// 
//void Insert1Bit_SpDomain_Quant(BYTE	*pucI,int	nRow,int nCol, 
//							   int	nX,int	nY,BYTE	bytB); 
// 
//BYTE Extract1Bit_SpDomain_Quant(BYTE	*pucI,int	nRow,int nCol, 
//							   int	nX,int	nY); 
// 
//double	ExtrBitsInLines_SpDomain(BYTE	*pucOrI,int	nRow,int nCol, 
//								  BYTE	*pucBinI,BYTE	*pucWMBits, 
//								  BYTE	*pucDetBits,int	nBitsC); 
// 
//void	InsertBitsToACurveLine(BYTE *pucOrI,int	nRow,int nCol, 
//							   LineSeg	lsSeg,BYTE *pucBits,int	nBitsC); 
// 
//double	ExtractBitsFromACurveLine(BYTE *pucOrI,int	nRow,int nCol, 
//							   LineSeg	lsSeg,BYTE *pucBitsWMLen, 
//							   BYTE *pucDetBits,BYTE *pucWMBits,int	nBitsC,double dfMaxCoeff); 
// 
//void	Gray1D_DFT(BYTE	*pI,int	nDataL,float	*pfR,float	*pfI); 
// 
//void	Reverse_1D_DFT_Gray(BYTE	*pI,int	nDataL,float	*pfRi,float	*pfIi); 
// 
//void	InsertBitsToACurveLine_FT(BYTE *pucOrI,int	nRow,int nCol, 
//							   LineSeg	lsSeg,BYTE *pucBits,int	nBitsC); 
// 
//void	EmbedBit_1D_FT(BYTE *pucBits,int	nBitsC, 
//					   float	*pfR,float	*pfI,BYTE *pI); 
// 
//void	ExtractBit_1D_FT(BYTE *pucBits,int	nBitsC, 
//					   float	*pfR,float	*pfI,BYTE	*pI); 
// 
//void	ExtractBitsToACurveLine_FT(BYTE *pucOrI,int	nRow,int nCol, 
//							   LineSeg	lsSeg,BYTE *pucBits,int	nBitsC); 
// 
//void	Gray1D_DCT(BYTE	*pI,int	nDataL,float	*pfDCT); 
// 
//void	Reverse_1D_DCT_Gray(BYTE	*pI,int	nDataL,float	*pfDCT); 
// 
//void	Embed1Bit_2D_DFT(BYTE bytB,BYTE	*pWinGray,int	nN); 
// 
//BYTE	Extract1Bit_2D_DFT(BYTE	*pWinGray,int	nN); 
// 
//int	RadnomSelBitsSeg(int	nLinSegL,int	nEmbUnit,BYTE	*pucBits, 
//					 int	nBitsC,BYTE	*pucBitsSeg); 
// 
//double	Sig_Correlation_01RDTemp(BYTE *pucImgBlkData,BYTE *pucTemplateData, 
//						DWORD dwDataSize);