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

  • 大小: 139KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-24
  • 語言: Matlab
  • 標簽: matlab??canny??

資源簡介

matlab編寫的canny,matlab編寫的canny

資源截圖

代碼片段和文件信息

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

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

?????文件??????66614??2004-06-29?22:59??Canny邊緣檢測\測試圖片\原始lena圖像.bmp

?????文件??????66614??2004-06-30?02:00??Canny邊緣檢測\測試圖片\用canny算子提取邊緣.bmp

?????目錄??????????0??2004-06-30?02:04??Canny邊緣檢測\測試圖片

?????文件??????38635??1995-09-27?21:29??Canny邊緣檢測\源代碼\cdib.cpp

?????文件???????3645??1995-08-03?13:28??Canny邊緣檢測\源代碼\cdib.h

?????文件???????1542??1995-08-03?13:28??Canny邊緣檢測\源代碼\ChildFrm.cpp

?????文件???????1397??1995-08-03?13:28??Canny邊緣檢測\源代碼\ChildFrm.h

?????文件??????65095??1995-09-27?16:03??Canny邊緣檢測\源代碼\ColorTable.h

?????文件??????17030??1995-08-03?13:28??Canny邊緣檢測\源代碼\DIBPrcs.cpp

?????文件???????9174??2002-11-29?23:12??Canny邊緣檢測\源代碼\GlobalApi.h

?????文件??????65316??2004-06-30?01:41??Canny邊緣檢測\源代碼\ImageProcessing.aps

?????文件??????11533??2004-06-30?01:49??Canny邊緣檢測\源代碼\ImageProcessing.clw

?????文件???????4918??1995-08-03?13:28??Canny邊緣檢測\源代碼\ImageProcessing.cpp

?????文件???????5297??2004-06-30?02:01??Canny邊緣檢測\源代碼\ImageProcessing.dsp

?????文件????????555??1995-08-03?13:28??Canny邊緣檢測\源代碼\ImageProcessing.dsw

?????文件???????1342??1995-08-03?13:28??Canny邊緣檢測\源代碼\ImageProcessing.h

?????文件??????27914??2004-06-30?01:41??Canny邊緣檢測\源代碼\ImageProcessing.rc

?????文件???????4363??1995-09-27?16:21??Canny邊緣檢測\源代碼\ImageProcessingDoc.cpp

?????文件???????1643??1995-09-27?15:59??Canny邊緣檢測\源代碼\ImageProcessingDoc.h

?????文件??????88347??2004-06-30?01:59??Canny邊緣檢測\源代碼\ImageProcessingView.cpp

?????文件???????2059??2004-06-30?01:46??Canny邊緣檢測\源代碼\ImageProcessingView.h

?????文件???????2532??1995-08-03?13:28??Canny邊緣檢測\源代碼\MainFrm.cpp

?????文件???????1542??1995-08-03?13:28??Canny邊緣檢測\源代碼\MainFrm.h

?????文件???????5009??1995-08-03?13:28??Canny邊緣檢測\源代碼\ReadMe.txt

?????文件??????????0??1996-11-02?04:49??Canny邊緣檢測\源代碼\Recog.asp

?????文件???????1078??1995-08-03?13:32??Canny邊緣檢測\源代碼\res\ImageProcessing.ico

?????文件????????407??1995-08-03?13:32??Canny邊緣檢測\源代碼\res\ImageProcessing.rc2

?????文件???????1078??1995-08-03?13:33??Canny邊緣檢測\源代碼\res\ImageProcessingDoc.ico

?????文件???????1078??1995-08-03?13:33??Canny邊緣檢測\源代碼\res\Toolbar.bmp

?????目錄??????????0??2004-06-30?02:04??Canny邊緣檢測\源代碼\res

............此處省略10個文件信息

評論

共有 條評論