#include "stdint.h"
#include "math.h"
#include "stdio.h"
#include "stdlib.h"
#define CV_PI 3.1415926
typedef uint8_t BYTE;
#define WORD uint16_t
#define DWORD uint32_t
#define LONG uint32_t
typedef struct tagBITMAPFILEHEADER{
WORD bfType;//2
DWORD bfSize;//4
WORD bfReserved1;//2
WORD bfReserved2;//2
DWORD bfOffBits;//4
} BITMAPFILEHEADER;//文件头 https://blog.csdn.net/yueni_zhao/article/details/127427713
typedef struct tagBITMAPINFOHEADER{
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BITMAPINFOHEADER; //信息头
typedef struct tagRGBQUAD{
BYTE rgbBlue; //该颜色的蓝色分量
BYTE rgbGreen; //该颜色的绿色分量
BYTE rgbRed; //该颜色的红色分量
BYTE rgbReserved; //保留值
} RGBQUAD;//调色板
int main(){
FILE *fp = fopen("./01.bmp", "rb");
if (fp == 0){ <