xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

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

資源簡介

通過邊緣檢測后,通過霍夫變換檢測圓,最后得到圓心坐標,半徑

資源截圖

代碼片段和文件信息

//?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

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


/*************************************************************************
?*
?*?\函數名稱:
?*???CDib()
?*
?*?\輸入參數:
?*?無
?*
?*?\返回值:
?*???無
?*
?*?\說明:
?*???構造函數
?*
?************************************************************************
?*/
CDib::CDib()
{
m_hFile??????=?NULL;
m_hBitmap????=?NULL;
m_hPalette???=?NULL;
m_nBmihAlloc?=?m_nImageAlloc?=?noAlloc;
Empty();
}


/*************************************************************************
?*
?*?\函數名稱:
?*???CDib()
?*
?*?\輸入參數:
?*?CSize size -?位圖尺寸
?*?int nBitCount -?象素位數
?*
?*?\返回值:
?*???無
?*
?*?\說明:
?*???構造函數
?*???根據給定的位圖尺寸和象素位數構造CDib對象,并對信息頭和調色板分配內存
?*???但并沒有給位圖數據分配內存
?*
?************************************************************************
?*/
CDib::CDib(CSize?size?int?nBitCount)
{
m_hFile??????=?NULL;
m_hBitmap????=?NULL;
m_hPalette???=?NULL;
m_nBmihAlloc?=?m_nImageAlloc?=?noAlloc;
Empty();

//?根據象素位數計算調色板尺寸
ComputePaletteSize(nBitCount);

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

//?設置信息頭內存分配狀態
m_nBmihAlloc?=?crtAlloc;

//?設置信息頭中的信息
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;

//?計算圖象數據內存的大小,并設置此DIB的調色板的指針
ComputeMetrics();

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

//?暫時不分配圖象數據內存
m_lpImage?=?NULL;?
}


/*************************************************************************
?*
?*?\函數名稱:
?*???~CDib()
?*
?*?\輸入參數:
?*?無
?*
?*?\返回值:
?*???無
?*
?*?\說明:
?*???析構函數,并釋放所有分配的DIB內存
?*
?************************************************************************
?*/
CDib::~CDib()
{
Empty();
}


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


/*************************************************************************
?*
?*?\函數名稱:
?*???AttachMapFile()
?*
?*?\輸入參數:
?*???const char*?strPathname -?映射文件的路徑名
?*???BOOL bShare -

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????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個文件信息

評論

共有 條評論