//保存图片
FILE* imgfile = fopen("1.raw", "wb"); //if (imgfile == NULL)
fwrite(imgraw, sizeof(uint16_t), (img_heigh)*(img_width), imgfile);
fclose(imgfile);
//读取图片
FILE *imgfile = fopen("1.raw", "rb");
fread(imgraw, sizeof(uint16_t) * (img_heigh)*(img_width), 1, imgfile);
fclose(imgfile);
读写raw图
于 2023-07-17 14:11:40 首次发布