From 5fd9b06dca58732f1e9509be56237c04bf2de050 Mon Sep 17 00:00:00 2001 From: nuknal Date: Sun, 29 Sep 2024 14:15:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E7=BA=A7=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/producer/aux.go | 7 +++++++ pkg/rrc/moment_matching.go | 1 - pkg/rrc/rrc.go | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/producer/aux.go b/pkg/producer/aux.go index 964f2dd..db2bb55 100644 --- a/pkg/producer/aux.go +++ b/pkg/producer/aux.go @@ -134,6 +134,13 @@ func (r *Registrator) ComputeMetaAndRPC(scene *Scene) (topLeft, bottomRight orb. scene.Meta.Pitch = aux0.Eular2 * 180 / math.Pi scene.Meta.Roll = aux0.Eular1 * 180 / math.Pi + ebox0 := r.auxBoxes[r.sceneOffsetInAuxIndex(scene, 0)] + if scene.Type == "PAN" { + scene.Meta.IntegratedLevel = int(ebox0.PIntegrationLevel) + } else { + scene.Meta.IntegratedLevel = int(ebox0.B1IntegrationLevel) + } + _, centerT, _ := r.SceneImageTime(scene) scene.Meta.SunAzimuth = SunAzimuth(centerT, scene.Meta.CentreLocation.Longitude, diff --git a/pkg/rrc/moment_matching.go b/pkg/rrc/moment_matching.go index c00cbce..f8c9f05 100644 --- a/pkg/rrc/moment_matching.go +++ b/pkg/rrc/moment_matching.go @@ -8,7 +8,6 @@ import ( ) // Destriping multisensor imagery with moment matching [Gadallah, 2000] -// 基于探元直方图匹配的CBERS01星CCD数据相对辐射校正方法 [潘志强, 2005] func DoMomentMatching(originalImg gocv.Mat) { probes := originalImg.Cols() log.Printf("do moment matching for %d probes, %d rows", probes, originalImg.Rows()) diff --git a/pkg/rrc/rrc.go b/pkg/rrc/rrc.go index 9154f4d..4abedd1 100644 --- a/pkg/rrc/rrc.go +++ b/pkg/rrc/rrc.go @@ -49,6 +49,7 @@ func (rrc *RRC) Statistical(dsPAN, dsMSS string) error { func (rrc *RRC) Close() {} +// 基于探元直方图匹配的CBERS01星CCD数据相对辐射校正方法 [潘志强, 2005] // 统计探元灰度的累积概率密度 func (rrc *RRC) StatisticalPAN(dsfile string) error { utils.PrintMemStats()