文件名称:Hough
- 所属分类:
- 图形图像处理(光照,映射..)
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- sun****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Hough变换
BOOL Hough(HWND hWnd){
//定义一个自己的直线结构
typedef struct{
int topx //最高点的x坐标
int topy //最高点的y坐标
int botx //最低点的x坐标
int boty //最低点的y坐标
}MYLINE
DWORD BufSize
LPBITMAPINFOHEADER lpImgData
LPSTR lpPtr
HDC hDc
LONG x,y
long i,maxd
int k
int Dist,Alpha
HGLOBAL hDistAlpha,hMyLine
int *lpDistAlpha
MYLINE *lpMyLine,*TempLine,MaxdLine
static LOGPEN rlp={PS_SOLID,1,1,RGB(255,0,0)}
HPEN rhp
//我们处理的实际上是256级灰度图,不过只用到了0和255两种颜色。
if( NumColors!=256){
MessageBox(hWnd,"Must be a mono bitmap with grayscale palette!",
"Error Message",MB_OK|MB_ICONEXCLAMATION)
return FALSE
}-Hough transform BOOL Hough (HWND hWnd) (//define a linear structure of its own typedef struct (int topx// the highest point of the x coordinates int topy// the highest point of the y coordinates int botx// the lowest point of the x coordinates int boty// lowest point of the y coordinates) MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x, y long i, maxd int k int Dist, Alpha HGLOBAL hDistAlpha, hMyLine int* lpDistAlpha MYLINE* lpMyLine,* TempLine, MaxdLine static LOGPEN rlp = ( PS_SOLID, 1,1, RGB (255,0,0)) HPEN rhp// We are dealing with is actually 256 grayscale, but only uses two colors 0 and 255. if (NumColors! = 256) (MessageBox (hWnd,
BOOL Hough(HWND hWnd){
//定义一个自己的直线结构
typedef struct{
int topx //最高点的x坐标
int topy //最高点的y坐标
int botx //最低点的x坐标
int boty //最低点的y坐标
}MYLINE
DWORD BufSize
LPBITMAPINFOHEADER lpImgData
LPSTR lpPtr
HDC hDc
LONG x,y
long i,maxd
int k
int Dist,Alpha
HGLOBAL hDistAlpha,hMyLine
int *lpDistAlpha
MYLINE *lpMyLine,*TempLine,MaxdLine
static LOGPEN rlp={PS_SOLID,1,1,RGB(255,0,0)}
HPEN rhp
//我们处理的实际上是256级灰度图,不过只用到了0和255两种颜色。
if( NumColors!=256){
MessageBox(hWnd,"Must be a mono bitmap with grayscale palette!",
"Error Message",MB_OK|MB_ICONEXCLAMATION)
return FALSE
}-Hough transform BOOL Hough (HWND hWnd) (//define a linear structure of its own typedef struct (int topx// the highest point of the x coordinates int topy// the highest point of the y coordinates int botx// the lowest point of the x coordinates int boty// lowest point of the y coordinates) MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x, y long i, maxd int k int Dist, Alpha HGLOBAL hDistAlpha, hMyLine int* lpDistAlpha MYLINE* lpMyLine,* TempLine, MaxdLine static LOGPEN rlp = ( PS_SOLID, 1,1, RGB (255,0,0)) HPEN rhp// We are dealing with is actually 256 grayscale, but only uses two colors 0 and 255. if (NumColors! = 256) (MessageBox (hWnd,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Hough变换.txt