This commit is contained in:
nuknal
2024-08-27 17:24:07 +08:00
parent 6f2cfa797a
commit ce0a4fc370
7 changed files with 173 additions and 79 deletions

View File

@@ -23,7 +23,7 @@ func SavePanToGDALGTiff(pan gocv.Mat, topLeftX, topLeftY float64, tiffFile strin
}
defer ds.Close()
setGeoTransform(ds, topLeftX, topLeftY, resolution)
// setGeoTransform(ds, topLeftX, topLeftY, resolution)
ds.SetMetadata("NBITS", "16")
// 将通道的数据转换为uint16数组