ecc align testing

This commit is contained in:
nuknal
2024-10-30 17:56:17 +08:00
parent 0e920ce9f0
commit e51d07901d
4 changed files with 66 additions and 7 deletions

View File

@@ -297,7 +297,7 @@ func (r *ImgProc) doPhaseCorrelation(base gocv.Mat,
mssBlock := mssImages[band].Region(rect)
// 处理每个分块
phaseShift, response := r.calculateBlockPhaseShift(panBlock, mssBlock)
phaseShift, response := CV_PhaseCorrelate(panBlock, mssBlock)
shiftM.dx = phaseShift.X
shiftM.dy = phaseShift.Y
shiftM.response = response