使用PIL Image读取多光谱图像遇到的问题

1.使用PIL Image读取4通道的8位的多光谱图像可以正常读取

使用PIL Image读取多光谱图像遇到的问题

读取16位的图像时 可能会出现错误(不确定)

2.读取5通道的图像时出现 cannot identify image file 'C5CropU8.tif'的错误

使用PIL Image读取多光谱图像遇到的问题

3.使用Mathematica软件处理多光谱图像

通道合并与通道分离

合并c = ColorCombine[{b3, b2, b1, b4, a5, NIR}]

分离d = ColorSeparate[图片],然后用d[[1]]获得各个通道的图片

导出:导出8位的数据,默认是16位 Export["C5CropU8.tif", a, "TIFF", "BitDepth" -> 8]

裁剪:cr1 = ImageTrim[cr, {{300*0 + 1, 300*0 + 1}, {300*1 - 1, 300*1 - 1}}]

配准:b1 = ImageAlign[a5, a]