DFT 带阻滤波器

This commit is contained in:
nuknal
2024-06-21 12:47:14 +08:00
parent e13038474a
commit d99b8a9740
16 changed files with 292 additions and 309 deletions

View File

@@ -113,6 +113,13 @@ func (r *Registrator) SetSceneBoundary(scene *Scene) (topLeft, bottomRight orb.P
xResolution := W0 / float64(scene.Width)
yResolution := H0 / float64(scene.Height)
scene.Meta.Gsd = math.Min(xResolution, yResolution)
// FIXME: 临时设置分辨率
if scene.Meta.Gsd < 2 {
scene.Meta.Gsd = 1.3
} else {
scene.Meta.Gsd = 5.2
}
log.Debug("resolution x: ", xResolution)
log.Debug("resolution y: ", yResolution)