aux platform

This commit is contained in:
nuknal
2024-05-15 16:32:18 +08:00
parent 6f76b2f131
commit 6a22735d78
16 changed files with 335 additions and 48 deletions

12
extract/spectral_img.go Normal file
View File

@@ -0,0 +1,12 @@
package extract
type SpectralImage struct {
Spectrum string // PAN(B0) B1 B2 B3 B4
H uint32 // 9520 像素 2(Margin) + 48(OB) + 38(Margin) + 9344(Effective Pixels) + 38(Margin) + 48(OB) + 2(Margin)
V uint32 // 7056 像素 2(Margin) + 12(OB) + 18(Margin) + 20(Margin) + 7000(Effective Pixels) + 4(Margin)
Pixels [][]*Pixel
}
type Pixel struct {
Bits [2]byte // 16bit
}