增加生成训练数据

This commit is contained in:
2026-04-16 13:11:05 +08:00
parent 987be5ad9b
commit b90f20c3b1
6 changed files with 527 additions and 9 deletions

View File

@ -390,9 +390,11 @@ def process_images(full_bil_path, mask, outdir='None', debug="None"):
return combined_data
# # # 示例:批量处理指定路径下的光谱图像和掩膜文件
# bil_path = r'D:\WQ\test\Traindata-05'
# mask_path = r'D:\WQ\test\mask'
# outdir = r"D:\WQ\test" # 输出文件夹路径
#
# process_images(bil_path, mask_path, outdir)
if __name__ == "__main__":
# # 示例:批量处理指定路径下的光谱图像和掩膜文件
bil_path = r'D:\WQ\test\Traindata-05'
mask_path = r'D:\WQ\test\mask'
outdir = r"D:\WQ\test" # 输出文件夹路径
process_images(bil_path, mask_path, outdir)