資源簡介
用Canny算子提取邊緣Visual C++源代碼,可以將獲得的圖像提取邊緣
代碼片段和文件信息
//?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對象,并對信息頭和調色板分配內存
?*???但并沒有給位圖數據分配內存
?*
?***********************************
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????66614??2004-06-29?22:59??用Canny算子提取邊緣\測試圖片\原始lena圖像.bmp
?????文件??????66614??2004-06-30?02:00??用Canny算子提取邊緣\測試圖片\用canny算子提取邊緣.bmp
?????文件??????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
?????文件?????172173??2008-06-03?16:45??用Canny算子提取邊緣\源代碼\Debug\ImageProcessing.exe
?????文件??????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
?????文件?????115712??2008-08-25?12:26??用Canny算子提取邊緣\源代碼\ImageProcessing.ncb
?????文件??????55808??2008-08-25?12:26??用Canny算子提取邊緣\源代碼\ImageProcessing.opt
?????文件???????3113??2008-06-03?16:45??用Canny算子提取邊緣\源代碼\ImageProcessing.plg
?????文件??????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
?????文件??????53248??2004-06-30?02:03??用Canny算子提取邊緣\源代碼\Release\ImageProcessing.exe
?????文件???????1078??1995-08-03?13:32??用Canny算子提取邊緣\源代碼\res\ImageProcessing.ico
?????文件????????407??1995-08-03?13:32??用Canny算子提取邊緣\源代碼\res\ImageProcessing.rc2
............此處省略15個文件信息
評論
共有 條評論