📄 image.h
字号:
#ifndef IMAGE_H
#define IMAGE_H
#include "wave.h"
typedef struct Image Image;
struct Image
{
int width,height;
int strideBytes;
ubyte * BGRplane;
};
Image * Image_Create(int w,int h);
Image * Image_CreateFromFileName(char *fname);
bool Image_ReadFromFileName(Image *im,char *fname);
float Image_DifferenceMSE(Image * im1,Image * im2);
void Image_Free(Image *im);
void Image_WriteFloatRaw(char *name,float *plane,int w,int h);
void Image_WriteUintRaw(char *name,uint *plane,int w,int h);
void Image_DownSampFPlane(float *plane,int w,int h);
void Image_UpSampFPlane( float *plane,int w,int h);
void Image_ReadRawFP(Image * im,int width,int height,FILE * streamFP);
void Image_WriteRawFP(Image * im,int width,int height,FILE * streamFP);
void Image_DoDelta(Image *im,Image *last);
void Image_MirrorExtend(Image *im,int fmw,int fmh);
bool Image_WriteToBMP(Image * im,char * fname,int w,int h);
#endif // IMAGE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -