配准后裁切掉MSS的末尾480行像素

This commit is contained in:
nuknal
2024-06-12 16:52:16 +08:00
parent 9ef23d9b4f
commit a4975d49b8
4 changed files with 8 additions and 3 deletions

View File

@@ -378,5 +378,9 @@ func (r *Registrator) DoCoRegistration() error {
color.RGBA{0, 0, 0, 0})
}
// 裁掉末尾的的 MSS 480 行 和 PAN 的 480*4 行
r.PanHeight -= 480 * 4
r.MssHeight -= 480
return nil
}

View File

@@ -42,7 +42,7 @@ func (r *Registrator) SubScenes() (panScenes []*Scene, mssScenes []*Scene, err e
hPANOverlap := 2336
panScenesCnt := r.PanHeight / hPAN
for i := 0; i < panScenesCnt; i++ {
for i := 0; i <= panScenesCnt; i++ {
y1 := (i+1)*hPAN + hPANOverlap
if y1 > r.PanHeight {
y1 = r.PanHeight
@@ -68,7 +68,7 @@ func (r *Registrator) SubScenes() (panScenes []*Scene, mssScenes []*Scene, err e
hMSS := hPAN / 4
hMSSOverlap := hPANOverlap / 4
mssScenesCnt := r.MssHeight / hMSS
for i := 0; i < mssScenesCnt; i++ {
for i := 0; i <= mssScenesCnt; i++ {
y1 := (i+1)*hMSS + hMSSOverlap
if y1 > r.MssHeight {
y1 = r.MssHeight