资源简介
MATLAB图像处理与识别实用案例精选+源代码,需要的拿去
代码片段和文件信息
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 12755 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\!00001.pdg
文件 13811 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\!00002.pdg
文件 14331 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\!00003.pdg
文件 14483 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\!00004.pdg
文件 14793 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\!00005.pdg
文件 13581 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\!00006.pdg
文件 21781 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000001.pdg
文件 29318 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000002.pdg
文件 28459 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000003.pdg
文件 18761 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000004.pdg
文件 27886 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000005.pdg
文件 25030 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000006.pdg
文件 33180 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000007.pdg
文件 22900 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000008.pdg
文件 43829 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000009.pdg
文件 43781 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000010.pdg
文件 19177 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000011.pdg
文件 18539 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000012.pdg
文件 24588 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000013.pdg
文件 30332 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000014.pdg
文件 19901 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000015.pdg
文件 12143 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000016.pdg
文件 17748 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000017.pdg
文件 18756 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000018.pdg
文件 22393 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000019.pdg
文件 27221 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000020.pdg
文件 27834 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000021.pdg
文件 14714 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000022.pdg
文件 41248 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000023.pdg
文件 20139 2006-06-30 22:38 Visual C++_MATLAB图像处理与识别实用案例精选+源代码\Visual C++_MATLAB图像处理与识别实用案例精选\000024.pdg
............此处省略1441个文件信息
相关资源
- 深度学习工具包matlab代码
- 数学物理方程的MATLAB解法与可视化.
- UCI部分数据集matlab版本40余个
-
MATLABSIMUli
nk通信系统建模与仿真分析 - 路径规划算法Matlab仿真更新
- MATLAB 5手册 高清合并版本
- MATLAB 图形用户界面GUI
- 美国原版:逆合成孔径雷达matlab算法
- (书)电力电子应用技术的MAtlab仿真
- 基于MATLAB的振动模态分析
- actup2.2水声信道仿真模型
- 《数字信号处理》英文版第三版Matl
- MIMO-OFDM WIRELESS COMMUNICATIONS WITH MATLAB2
- 回声状态网络对网络流量的预测.zip
- MATLAB开发了一套车牌识别系统,完成
- MATLAB优化算法案例分析与应用 源代码
- matlab与机器学习代码
- 基于matlab的图形图像处理系统的实现
- 虹膜识别 matlab算法
- 电力电子应用技术的MATLAB仿真
- BNT-MATLAB工具箱
- 基于matlabGUI的暗通道图像去雾程序
-
matlab GUI和simuli
nk结合的信号处理系 - 基于matlab的dbn在mnist 手写数字上的实
- GNSS 与惯性及多传感器组合导航系统原
- Fraclab MATLAB分形工具箱
- 使用matlab语言对信号进行频谱分析识
- 现代永磁同步电机控制原理及MATLAB仿
- 用于人脸识别的NMF分解程序(用MATL
- [配套代码及素材]数字图像处理及MA
评论
共有 条评论