您的位置:首页 > 编程语言 > C语言/C++

基于标准C语言的数字图像处理基本框架2

2011-02-21 21:41 375 查看

基于标准C语言的数字图像处理基本框架2

#ifndef BMP_H_INCLUDED
20#define BMP_H_INCLUDED
21
22#include <ctype.h>
23#include <stdio.h>
24#include <stdlib.h>
25#include <malloc.h>
26#include <string.h>
27
28typedef unsigned short WORD;
32typedef unsigned long DWORD;
33typedef long LONG;
34typedef unsigned char BYTE;
35
36
45
60
68
74typedef struct _Bitmap
76{
77 BITMAPFILEHEADER bmfh;
78 BITMAPINFOHEADER bmih;
79 int width;
80 int height;
81 int bitCount; // 8 或者24
82 int imageSize; // 图像数据大小(imageSize=height*widthStep)字节
83 BYTE* imageData;//排列的图像数据
84 int widthStep; //排列的图像行大小
85}Bitmap;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: