refactor
This commit is contained in:
@@ -22,7 +22,7 @@ type Block struct {
|
||||
coord image.Point // top-left corner of the block in the original image
|
||||
}
|
||||
|
||||
func (r *Registrator) calculateBlockPhaseShift(panBlock, mssBlock gocv.Mat) (gocv.Point2f, float64) {
|
||||
func (r *ImgProc) calculateBlockPhaseShift(panBlock, mssBlock gocv.Mat) (gocv.Point2f, float64) {
|
||||
pan := gocv.NewMat()
|
||||
mss := gocv.NewMat()
|
||||
|
||||
@@ -43,7 +43,7 @@ func (r *Registrator) calculateBlockPhaseShift(panBlock, mssBlock gocv.Mat) (goc
|
||||
return shift, response
|
||||
}
|
||||
|
||||
func (r *Registrator) fileterPhaseShift(thredholds []float64, greaterThan bool) error {
|
||||
func (r *ImgProc) fileterPhaseShift(thredholds []float64, greaterThan bool) error {
|
||||
if len(thredholds) > 4 {
|
||||
return errors.New("thredholds length should be less than 4")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user