图像处理源代码c)
基本的图像处理代码 c语言实现的 很经典 适合初学者
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23782 2004-03-07 17:05 各种图像处理算法高斯平滑源代码dibapi.cpp
文件 1876 2000-02-03 07:29 各种图像处理算法高斯平滑源代码dibapi.h
文件 2506 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MainFrm.cpp
文件 1581 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MainFrm.h
文件 3157 2004-05-20 17:49 各种图像处理算法高斯平滑源代码mydib.cpp
文件 72 2004-05-20 17:26 各种图像处理算法高斯平滑源代码mydib.h
文件 46296 2004-06-30 00:22 各种图像处理算法高斯平滑源代码MyDIP.aps
文件 2615 2004-06-30 00:19 各种图像处理算法高斯平滑源代码MyDIP.clw
文件 4158 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MyDIP.cpp
文件 4781 2004-05-20 17:54 各种图像处理算法高斯平滑源代码MyDIP.dsp
文件 533 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MyDIP.dsw
文件 1345 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MyDIP.h
文件 12279 2004-06-30 00:22 各种图像处理算法高斯平滑源代码MyDIP.rc
文件 4007 2004-05-20 17:10 各种图像处理算法高斯平滑源代码MyDIPDoc.cpp
文件 1830 2004-05-20 15:17 各种图像处理算法高斯平滑源代码MyDIPDoc.h
文件 8080 2004-06-30 00:22 各种图像处理算法高斯平滑源代码MyDIPView.cpp
文件 1852 2004-06-30 00:19 各种图像处理算法高斯平滑源代码MyDIPView.h
文件 4287 2004-05-20 14:25 各种图像处理算法高斯平滑源代码ReadMe.txt
文件 874 2004-06-30 00:22 各种图像处理算法高斯平滑源代码Resource.h
文件 207 2004-05-20 14:25 各种图像处理算法高斯平滑源代码StdAfx.cpp
文件 1040 2004-05-20 17:21 各种图像处理算法高斯平滑源代码StdAfx.h
文件 1078 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esMyDIP.ico
文件 397 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esMyDIP.rc2
文件 1078 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esMyDIPDoc.ico
文件 1078 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esToolbar.bmp
文件 36864 2004-06-30 00:23 各种图像处理算法高斯平滑源代码ReleaseMyDIP.exe
文件 66614 2004-06-29 22:59 各种图像处理算法高斯平滑测试图片原始lena图像.bmp
文件 66614 2004-06-30 00:23 各种图像处理算法高斯平滑测试图片经过高斯平滑后.bmp
文件 953 2004-01-17 23:19 各种图像处理算法阈值变换阈值变换.txt
文件 2919 2004-01-17 23:28 各种图像处理算法逆滤波处理逆滤波处理.txt
............此处省略920个文件信息
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23782 2004-03-07 17:05 各种图像处理算法高斯平滑源代码dibapi.cpp
文件 1876 2000-02-03 07:29 各种图像处理算法高斯平滑源代码dibapi.h
文件 2506 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MainFrm.cpp
文件 1581 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MainFrm.h
文件 3157 2004-05-20 17:49 各种图像处理算法高斯平滑源代码mydib.cpp
文件 72 2004-05-20 17:26 各种图像处理算法高斯平滑源代码mydib.h
文件 46296 2004-06-30 00:22 各种图像处理算法高斯平滑源代码MyDIP.aps
文件 2615 2004-06-30 00:19 各种图像处理算法高斯平滑源代码MyDIP.clw
文件 4158 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MyDIP.cpp
文件 4781 2004-05-20 17:54 各种图像处理算法高斯平滑源代码MyDIP.dsp
文件 533 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MyDIP.dsw
文件 1345 2004-05-20 14:25 各种图像处理算法高斯平滑源代码MyDIP.h
文件 12279 2004-06-30 00:22 各种图像处理算法高斯平滑源代码MyDIP.rc
文件 4007 2004-05-20 17:10 各种图像处理算法高斯平滑源代码MyDIPDoc.cpp
文件 1830 2004-05-20 15:17 各种图像处理算法高斯平滑源代码MyDIPDoc.h
文件 8080 2004-06-30 00:22 各种图像处理算法高斯平滑源代码MyDIPView.cpp
文件 1852 2004-06-30 00:19 各种图像处理算法高斯平滑源代码MyDIPView.h
文件 4287 2004-05-20 14:25 各种图像处理算法高斯平滑源代码ReadMe.txt
文件 874 2004-06-30 00:22 各种图像处理算法高斯平滑源代码Resource.h
文件 207 2004-05-20 14:25 各种图像处理算法高斯平滑源代码StdAfx.cpp
文件 1040 2004-05-20 17:21 各种图像处理算法高斯平滑源代码StdAfx.h
文件 1078 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esMyDIP.ico
文件 397 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esMyDIP.rc2
文件 1078 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esMyDIPDoc.ico
文件 1078 2004-05-20 14:25 各种图像处理算法高斯平滑源代码
esToolbar.bmp
文件 36864 2004-06-30 00:23 各种图像处理算法高斯平滑源代码ReleaseMyDIP.exe
文件 66614 2004-06-29 22:59 各种图像处理算法高斯平滑测试图片原始lena图像.bmp
文件 66614 2004-06-30 00:23 各种图像处理算法高斯平滑测试图片经过高斯平滑后.bmp
文件 953 2004-01-17 23:19 各种图像处理算法阈值变换阈值变换.txt
文件 2919 2004-01-17 23:28 各种图像处理算法逆滤波处理逆滤波处理.txt
............此处省略920个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)