docker builder

This commit is contained in:
nuknal
2024-06-13 10:18:04 +08:00
parent a4975d49b8
commit ee427949e3
6 changed files with 40 additions and 3 deletions

View File

@@ -56,6 +56,11 @@ func (r *Registrator) SubScenes() (panScenes []*Scene, mssScenes []*Scene, err e
Y: i * hPAN,
}
if scene.Height < scene.Width/2 {
log.Info("scene height too small, skip")
continue
}
name := filepath.Base(r.Params.PanTiffFile)
name = strings.TrimSuffix(name, ".tiff")
scene.SceneId = fmt.Sprintf("%s_%03d", name, i+1)
@@ -82,6 +87,11 @@ func (r *Registrator) SubScenes() (panScenes []*Scene, mssScenes []*Scene, err e
Y: i * hMSS,
}
if scene.Height < scene.Width/2 {
log.Info("scene height too small, skip")
continue
}
for band := 0; band < 4; band++ {
mat := r.registeredMssImages[band].Region(image.Rect(0, i*hMSS, 2336, y1))
scene.Mat = append(scene.Mat, mat)