資源簡(jiǎn)介
很全的數(shù)字圖像處理程序,每一個(gè)都是經(jīng)典,此程序?yàn)闂钍绗摼帉懙臄?shù)字圖像處理程序設(shè)計(jì)的光盤代碼
代碼片段和文件信息
//??dibapi.cpp
//
//??Source?file?for?Device-Independent?Bitmap?(DIB)?API.??Provides
//??the?following?functions:
//
//??PaintDIB()??????????-?Painting?routine?for?a?DIB
//??CreateDIBPalette()??-?Creates?a?palette?from?a?DIB
//??FindDIBBits()???????-?Returns?a?pointer?to?the?DIB?bits
//??DIBWidth()??????????-?Gets?the?width?of?the?DIB
//??DIBHeight()?????????-?Gets?the?height?of?the?DIB
//??PaletteSize()???????-?Gets?the?size?required?to?store?the?DIB‘s?palette
//??DIBNumColors()??????-?Calculates?the?number?of?colors
//????????????????????????in?the?DIB‘s?color?table
//??CopyHandle()????????-?Makes?a?copy?of?the?given?global?memory?block
//
//?This?is?a?part?of?the?Microsoft?Foundation?Classes?C++?library.
//?Copyright?(C)?1992-1997?Microsoft?Corporation
//?All?rights?reserved.
//
//?This?source?code?is?only?intended?as?a?supplement?to?the
//?Microsoft?Foundation?Classes?Reference?and?related
//?electronic?documentation?provided?with?the?library.
//?See?these?sources?for?detailed?information?regarding?the
//?Microsoft?Foundation?Classes?product.
#include?“stdafx.h“
#include?“dibapi.h“
#include?
#include?
#include?
#define?DIB_HEADER_MARKER???((WORD)?(‘M‘?<8)?|?‘B‘)
#ifdef?_MAC
#define?SWAPWORD(x)?MAKEWORD(HIBYTE(x)?LOBYTE(x))
#define?SWAPLONG(x)?MAKELONG(SWAPWORD(HIWORD(x))?SWAPWORD(LOWORD(x)))
void?ByteSwapHeader(BITMAPFILEHEADER*?bmiHeader);
void?ByteSwapInfo(LPSTR?lpHeader?BOOL?fWin30Header);
#endif
/*************************************************************************
?*
?*?PaintDIB()
?*
?*?Parameters:
?*
?*?HDC?hDC??????????-?DC?to?do?output?to
?*
?*?LPRECT?lpDCRect??-?rectangle?on?DC?to?do?output?to
?*
?*?HDIB?hDIB????????-?handle?to?global?memory?with?a?DIB?spec
?*????????????????????in?it?followed?by?the?DIB?bits
?*
?*?LPRECT?lpDIBRect?-?rectangle?of?DIB?to?output?into?lpDCRect
?*
?*?CPalette*?pPal???-?pointer?to?CPalette?containing?DIB‘s?palette
?*
?*?Return?Value:
?*
?*?BOOL?????????????-?TRUE?if?DIB?was?drawn?FALSE?otherwise
?*
?*?Description:
?*???Painting?routine?for?a?DIB.??Calls?StretchDIBits()?or
?*???SetDIBitsToDevice()?to?paint?the?DIB.??The?DIB?is
?*???output?to?the?specified?DC?at?the?coordinates?given
?*???in?lpDCRect.??The?area?of?the?DIB?to?be?output?is
?*???given?by?lpDIBRect.
?*
?************************************************************************/
BOOL?WINAPI?PaintDIB(HDC?????hDC
LPRECT??lpDCRect
HDIB????hDIB
LPRECT??lpDIBRect
CPalette*?pPal)
{
LPSTR????lpDIBHdr;????????????//?Pointer?to?BITMAPINFOHEADER
LPSTR????lpDIBBits;???????????//?Pointer?to?DIB?bits
BOOL?????bSuccess=FALSE;??????//?Success/fail?flag
HPALETTE?hPal=NULL;???????????//?Our?DIB‘s?palette
HPALETTE?hOldPal=NULL;????????//?Previous?palette
/*?Check?for?valid?DIB?handle?*/
if?(hDIB?==?NULL)
return?FALSE;
/*?Lock?down?the?DIB?and?get?a?pointer?to?the?beginning?of?the?bit
?*??buffer
?*/
l
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????151154??2007-03-18?10:54??VC圖像處理源程序大全\256色轉(zhuǎn)灰度圖.rar
?????文件???????5519??2007-03-18?10:54??VC圖像處理源程序大全\Hough變換.rar
?????文件????????870??2009-12-06?14:24??VC圖像處理源程序大全\VC源程序大全.txt
?????文件?????153299??2007-03-18?10:55??VC圖像處理源程序大全\Walsh變換.rar
?????文件?????149391??2007-03-18?10:57??VC圖像處理源程序大全\中值濾波.rar
?????文件?????114061??2007-03-18?10:55??VC圖像處理源程序大全\二值化變換.rar
?????文件?????198787??2007-03-18?10:56??VC圖像處理源程序大全\亮度增減.rar
?????文件?????147787??2007-03-18?10:55??VC圖像處理源程序大全\傅立葉變換.rar
?????文件?????151576??2007-03-18?10:55??VC圖像處理源程序大全\反色.rar
?????文件?????140446??2007-03-18?10:56??VC圖像處理源程序大全\取對(duì)數(shù).rar
?????文件?????138746??2007-03-18?10:56??VC圖像處理源程序大全\取指數(shù).rar
?????文件?????257723??2007-03-18?10:56??VC圖像處理源程序大全\圖像平移.rar
?????文件?????218817??2007-03-18?10:56??VC圖像處理源程序大全\圖像旋轉(zhuǎn).rar
?????文件??????55129??2007-03-18?10:56??VC圖像處理源程序大全\圖像細(xì)化.rar
?????文件?????197240??2007-03-18?10:56??VC圖像處理源程序大全\圖像縮放.rar
?????文件?????205854??2007-03-18?10:56??VC圖像處理源程序大全\圖像鏡像.rar
?????文件?????127166??2007-03-18?10:55??VC圖像處理源程序大全\均值濾波.rar
?????文件?????157512??2007-03-18?10:55??VC圖像處理源程序大全\對(duì)比度拉伸.rar
?????文件?????160305??2007-03-18?10:55??VC圖像處理源程序大全\拉普拉斯銳化(邊緣檢測(cè)).rar
?????文件?????463260??2007-03-18?10:55??VC圖像處理源程序大全\方塊編碼.rar
?????文件??????56587??2007-03-18?10:56??VC圖像處理源程序大全\梯度銳化.rar
?????文件??????50363??2007-03-18?10:55??VC圖像處理源程序大全\灰度均衡.rar
?????文件?????159764??2007-03-18?10:57??VC圖像處理源程序大全\用Canny算子提取邊緣.rar
?????文件?????128230??2007-03-18?10:57??VC圖像處理源程序大全\直方圖均衡.rar
?????文件?????149932??2007-03-18?10:55??VC圖像處理源程序大全\離散余弦變換.rar
?????文件???????1321??2007-03-18?10:56??VC圖像處理源程序大全\維納濾波處理.rar
?????文件???????1183??2007-03-18?10:56??VC圖像處理源程序大全\逆濾波處理.rar
?????文件????????732??2007-03-18?10:57??VC圖像處理源程序大全\閾值變換.rar
?????文件?????132604??2007-03-18?10:55??VC圖像處理源程序大全\高斯平滑.rar
?????目錄??????????0??2009-12-06?14:24??VC圖像處理源程序大全
............此處省略3個(gè)文件信息
評(píng)論
共有 條評(píng)論