配准后裁切掉MSS的末尾480行像素
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ data
|
|||||||
*.PNG
|
*.PNG
|
||||||
bin
|
bin
|
||||||
log
|
log
|
||||||
|
deployment
|
||||||
|
|||||||
@@ -14,4 +14,4 @@ ENV PATH="/opt/go/bin:${PATH}"
|
|||||||
|
|
||||||
RUN cd /opt && git clone -b v0.36.1 https://github.com/hybridgroup/gocv.git && cd gocv && \
|
RUN cd /opt && git clone -b v0.36.1 https://github.com/hybridgroup/gocv.git && cd gocv && \
|
||||||
make install
|
make install
|
||||||
|
RUN cd /sjy01/image-proc && go mod download && make linux
|
||||||
|
|||||||
@@ -378,5 +378,9 @@ func (r *Registrator) DoCoRegistration() error {
|
|||||||
color.RGBA{0, 0, 0, 0})
|
color.RGBA{0, 0, 0, 0})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 裁掉末尾的的 MSS 480 行 和 PAN 的 480*4 行
|
||||||
|
r.PanHeight -= 480 * 4
|
||||||
|
r.MssHeight -= 480
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ func (r *Registrator) SubScenes() (panScenes []*Scene, mssScenes []*Scene, err e
|
|||||||
hPANOverlap := 2336
|
hPANOverlap := 2336
|
||||||
panScenesCnt := r.PanHeight / hPAN
|
panScenesCnt := r.PanHeight / hPAN
|
||||||
|
|
||||||
for i := 0; i < panScenesCnt; i++ {
|
for i := 0; i <= panScenesCnt; i++ {
|
||||||
y1 := (i+1)*hPAN + hPANOverlap
|
y1 := (i+1)*hPAN + hPANOverlap
|
||||||
if y1 > r.PanHeight {
|
if y1 > r.PanHeight {
|
||||||
y1 = r.PanHeight
|
y1 = r.PanHeight
|
||||||
@@ -68,7 +68,7 @@ func (r *Registrator) SubScenes() (panScenes []*Scene, mssScenes []*Scene, err e
|
|||||||
hMSS := hPAN / 4
|
hMSS := hPAN / 4
|
||||||
hMSSOverlap := hPANOverlap / 4
|
hMSSOverlap := hPANOverlap / 4
|
||||||
mssScenesCnt := r.MssHeight / hMSS
|
mssScenesCnt := r.MssHeight / hMSS
|
||||||
for i := 0; i < mssScenesCnt; i++ {
|
for i := 0; i <= mssScenesCnt; i++ {
|
||||||
y1 := (i+1)*hMSS + hMSSOverlap
|
y1 := (i+1)*hMSS + hMSSOverlap
|
||||||
if y1 > r.MssHeight {
|
if y1 > r.MssHeight {
|
||||||
y1 = r.MssHeight
|
y1 = r.MssHeight
|
||||||
|
|||||||
Reference in New Issue
Block a user