www.pudn.com > Hough.rar > HoughTransform.h
#ifndef _HOUGH_TRANSFORM_H
#define _HOUGH_TRANSFORM_H
#include "resource.h" // main symbols
#include <stdio.h>
#include <math.h>
#include <malloc.h>
#include <stdlib.h>
#define PI 3.1415926
#define Plittlepoint 0.00000001
#define Nlittlepoint -0.00000001
typedef struct CirclePoint {
int XPos;
int YPos;
int Radius;
int StatOfPoint;
} *pCirclePoint;
//extern"C"
void HoughTransform(unsigned char* ptr, int width, int height, int threshold,
int*&amt; pPos, int&amt; detectedPointsCount);
void HoughTransform(unsigned char* ptr, int width, int height, int circleNum,
int nMaxRadius, int edgeThick, int nDistanceBetweenCenters, int*&amt; pCircPos);
int FindMaxAndDeleteAreaForCircle(int* TranData, int height, int width, int nMaxRadius, int nDistanceBetweenCenters);
void DetectCircle(unsigned char* pImgData, int imgDataCount, int height, int width,
int MaxRadius, int edgeThick, int* CenterPos, int CenterCount);
// void CreateCircle( unsigned char* ptr, int height, int width,
// int Radius, int MaxRadius, int* XPosInCircle, int* YPosInCircle);
// void ComputeStatOfPixs( unsigned char* ptr, int height, int width, int radius, int MaxRadius,
// int* XPosInCircle, int* YPosInCircle, int* pStatOfPoint );
// void CheckAndVerifyPos( int height, int width, pCirclePoint MatchPoint );
#endif