python - 如何读取多光谱图像?
问题描述
我有带有.tif
扩展名的多光谱图像。如何使用 Python 读取此类多光谱图像?
解决方案
Pillow 模块支持您可能喜欢的“多帧 TIFF 图像”。你能提供一个你想打开的示例文件吗?你期望里面有什么?
这可能会完成这项工作:
from PIL import Image
im = Image.open("image.tif")
print(im.num_frames)
im.seek(im.tell() + 1))
推荐阅读
- r - 按到邻居的距离散点图颜色
- javascript - 在AngularJS函数中转换javascript函数
- spring-boot - Sec:authorize 在 Spring Security 4 中不起作用
- sparql - 查找出生在给定城市的所有艺术家
- python - 分配前引用的python UnboundLocalError
- javascript - onClick / onItemClick JSX 语法 React + Office UI Fabric
- c++ - C ++:在子目录中加载dll - 清单
- sql-server - 内存中的 SQL Server 等效项
- apache-kafka - 无法将 Kafka 流接收到 JDBC:不可恢复的异常
- laravel - Laravel 验证两列值