91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 105KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-23
  • 語(yǔ)言: 其他
  • 標(biāo)簽: 霍夫變換??

資源簡(jiǎn)介

通過(guò)邊緣檢測(cè)后,通過(guò)霍夫變換檢測(cè)圓,最后得到圓心坐標(biāo),半徑

資源截圖

代碼片段和文件信息

//?cdib.cpp

#include?“stdafx.h“
#include?“math.h“
#include?“process.h“

#include?“cdib.h“
#include?“GlobalApi.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

//?聲明串行化過(guò)程
IMPLEMENT_SERIAL(CDib?Cobject?0);


/*************************************************************************
?*
?*?\函數(shù)名稱:
?*???CDib()
?*
?*?\輸入?yún)?shù):
?*?無(wú)
?*
?*?\返回值:
?*???無(wú)
?*
?*?\說(shuō)明:
?*???構(gòu)造函數(shù)
?*
?************************************************************************
?*/
CDib::CDib()
{
m_hFile??????=?NULL;
m_hBitmap????=?NULL;
m_hPalette???=?NULL;
m_nBmihAlloc?=?m_nImageAlloc?=?noAlloc;
Empty();
}


/*************************************************************************
?*
?*?\函數(shù)名稱:
?*???CDib()
?*
?*?\輸入?yún)?shù):
?*?CSize size -?位圖尺寸
?*?int nBitCount -?象素位數(shù)
?*
?*?\返回值:
?*???無(wú)
?*
?*?\說(shuō)明:
?*???構(gòu)造函數(shù)
?*???根據(jù)給定的位圖尺寸和象素位數(shù)構(gòu)造CDib對(duì)象,并對(duì)信息頭和調(diào)色板分配內(nèi)存
?*???但并沒(méi)有給位圖數(shù)據(jù)分配內(nèi)存
?*
?************************************************************************
?*/
CDib::CDib(CSize?size?int?nBitCount)
{
m_hFile??????=?NULL;
m_hBitmap????=?NULL;
m_hPalette???=?NULL;
m_nBmihAlloc?=?m_nImageAlloc?=?noAlloc;
Empty();

//?根據(jù)象素位數(shù)計(jì)算調(diào)色板尺寸
ComputePaletteSize(nBitCount);

//?分配DIB信息頭和調(diào)色板的內(nèi)存
m_lpBMIH?=?(LPBITMAPINFOHEADER)?new?
char[sizeof(BITMAPINFOHEADER)?+?sizeof(RGBQUAD)?*?m_nColorTableEntries];

//?設(shè)置信息頭內(nèi)存分配狀態(tài)
m_nBmihAlloc?=?crtAlloc;

//?設(shè)置信息頭中的信息
m_lpBMIH->biSize =?sizeof(BITMAPINFOHEADER);
m_lpBMIH->biWidth =?size.cx;
m_lpBMIH->biHeight =?size.cy;
m_lpBMIH->biPlanes =?1;
m_lpBMIH->biBitCount =?nBitCount;
m_lpBMIH->biCompression?=?BI_RGB;
m_lpBMIH->biSizeImage =?0;
m_lpBMIH->biXPelsPerMeter?=?0;
m_lpBMIH->biYPelsPerMeter?=?0;
m_lpBMIH->biClrUsed =?m_nColorTableEntries;
m_lpBMIH->biClrImportant=?m_nColorTableEntries;

//?計(jì)算圖象數(shù)據(jù)內(nèi)存的大小,并設(shè)置此DIB的調(diào)色板的指針
ComputeMetrics();

//?將此DIB的調(diào)色板初始化為0
memset(m_lpvColorTable?0?sizeof(RGBQUAD)?*?m_nColorTableEntries);

//?暫時(shí)不分配圖象數(shù)據(jù)內(nèi)存
m_lpImage?=?NULL;?
}


/*************************************************************************
?*
?*?\函數(shù)名稱:
?*???~CDib()
?*
?*?\輸入?yún)?shù):
?*?無(wú)
?*
?*?\返回值:
?*???無(wú)
?*
?*?\說(shuō)明:
?*???析構(gòu)函數(shù),并釋放所有分配的DIB內(nèi)存
?*
?************************************************************************
?*/
CDib::~CDib()
{
Empty();
}


/*************************************************************************
?*
?*?\函數(shù)名稱:
?*???GetDimensions()
?*
?*?\輸入?yún)?shù):
?*???無(wú)
?*
?*?\返回值:
?*???CSize -?DIB的寬度和高度
?*
?*?\說(shuō)明:
?*???返回以象素表示的DIB的寬度和高度
?*
?************************************************************************
?*/
CSize?CDib::GetDimensions()
{
if(m_lpBMIH?==?NULL)?return?CSize(0?0);
return?CSize((int)?m_lpBMIH->biWidth?(int)?m_lpBMIH->biHeight);
}


/*************************************************************************
?*
?*?\函數(shù)名稱:
?*???AttachMapFile()
?*
?*?\輸入?yún)?shù):
?*???const char*?strPathname -?映射文件的路徑名
?*???BOOL bShare -

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????38635??2008-12-03?13:36??Circle\源代碼\cdib.cpp

?????文件???????3705??2008-12-06?13:49??Circle\源代碼\cdib.h

?????文件???????1542??1995-08-03?13:28??Circle\源代碼\ChildFrm.cpp

?????文件???????1397??1995-08-03?13:28??Circle\源代碼\ChildFrm.h

?????文件??????65095??2008-12-06?14:46??Circle\源代碼\ColorTable.h

?????文件??????17030??1995-08-03?13:28??Circle\源代碼\DIBPrcs.cpp

?????文件???????3211??2008-12-07?19:55??Circle\源代碼\GlobalApi.h

?????文件??????43956??2008-12-07?19:45??Circle\源代碼\ImageProcessing.aps

?????文件??????11498??2008-12-13?13:52??Circle\源代碼\ImageProcessing.clw

?????文件???????4918??1995-08-03?13:28??Circle\源代碼\ImageProcessing.cpp

?????文件???????5297??2008-11-26?18:27??Circle\源代碼\ImageProcessing.dsp

?????文件????????555??1995-08-03?13:28??Circle\源代碼\ImageProcessing.dsw

?????文件???????1342??1995-08-03?13:28??Circle\源代碼\ImageProcessing.h

?????文件?????279552??2008-12-13?13:52??Circle\源代碼\ImageProcessing.ncb

?????文件??????51712??2008-12-13?13:52??Circle\源代碼\ImageProcessing.opt

?????文件???????1817??2008-12-07?19:56??Circle\源代碼\ImageProcessing.plg

?????文件??????27823??2008-12-06?12:48??Circle\源代碼\ImageProcessing.rc

?????文件???????4363??1995-09-27?16:21??Circle\源代碼\ImageProcessingDoc.cpp

?????文件???????1643??1995-09-27?15:59??Circle\源代碼\ImageProcessingDoc.h

?????文件??????11010??2008-12-07?19:55??Circle\源代碼\ImageProcessingView.cpp

?????文件???????2219??2008-12-07?19:50??Circle\源代碼\ImageProcessingView.h

?????文件???????2532??1995-08-03?13:28??Circle\源代碼\MainFrm.cpp

?????文件???????1542??1995-08-03?13:28??Circle\源代碼\MainFrm.h

?????文件???????5009??1995-08-03?13:28??Circle\源代碼\ReadMe.txt

?????文件??????????0??1996-11-02?04:49??Circle\源代碼\Recog.asp

?????文件???????1078??1995-08-03?13:32??Circle\源代碼\res\ImageProcessing.ico

?????文件????????407??1995-08-03?13:32??Circle\源代碼\res\ImageProcessing.rc2

?????文件???????1078??1995-08-03?13:33??Circle\源代碼\res\ImageProcessingDoc.ico

?????文件???????1078??1995-08-03?13:33??Circle\源代碼\res\Toolbar.bmp

?????文件???????7367??2008-12-06?12:48??Circle\源代碼\Resource.h

............此處省略12個(gè)文件信息

評(píng)論

共有 條評(píng)論