天天看点

C++读写TIF格式

参考文章:(1)https://www.cnblogs.com/gywei/p/3393816.html

(2)https://blog.csdn.net/han_jiang_xue/article/details/8266207

图片是一个用matlab生成的.tif文件,写入了5*5 值为3的图像uint16类型的数据,通过二进制文件查看tif格式的存储方式

写入图像原始数据为:

3 3 3 3 3

3 3 3 3 3

3 3 3 3 3

3 3 3 3 3

3 3 3 3 3

C++读写TIF格式

继续阅读