Skip to content

Commit 42ed3dd

Browse files
committed
fix: HomographyMethod const values typo fixed
1 parent c8e129b commit 42ed3dd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

imgproc.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,10 +1819,10 @@ func GetAffineTransform2f(src, dst Point2fVector) Mat {
18191819
type HomographyMethod int
18201820

18211821
const (
1822-
HomograpyMethodAllPoints HomographyMethod = 0
1823-
HomograpyMethodLMEDS HomographyMethod = 4
1824-
HomograpyMethodRANSAC HomographyMethod = 8
1825-
HomograpyMethodRHO HomographyMethod = 16
1822+
HomographyMethodAllPoints HomographyMethod = 0
1823+
HomographyMethodLMEDS HomographyMethod = 4
1824+
HomographyMethodRANSAC HomographyMethod = 8
1825+
HomographyMethodRHO HomographyMethod = 16
18261826
)
18271827

18281828
// FindHomography finds an optimal homography matrix using 4 or more point pairs (as opposed to GetPerspectiveTransform, which uses exactly 4)

imgproc_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ func TestErodeWithParamsAndBorderValue(t *testing.T) {
776776
kernel := GetStructuringElement(MorphRect, image.Pt(1, 1))
777777
defer kernel.Close()
778778

779-
ErodeWithParamsAndBorderValue(img, &dest, kernel, image.Pt(-1, -1), 3, 0, NewScalar(0,0,0,0))
779+
ErodeWithParamsAndBorderValue(img, &dest, kernel, image.Pt(-1, -1), 3, 0, NewScalar(0, 0, 0, 0))
780780
if dest.Empty() || img.Rows() != dest.Rows() || img.Cols() != dest.Cols() {
781781
t.Error("Invalid ErodeWithParamsAndBorderValue test")
782782
}
@@ -2003,7 +2003,7 @@ func TestFindHomography(t *testing.T) {
20032003
mask := NewMat()
20042004
defer mask.Close()
20052005

2006-
m := FindHomography(src, &dst, HomograpyMethodAllPoints, 3, &mask, 2000, 0.995)
2006+
m := FindHomography(src, &dst, HomographyMethodAllPoints, 3, &mask, 2000, 0.995)
20072007
defer m.Close()
20082008

20092009
pvsrc := NewPoint2fVectorFromPoints(srcPoints)

0 commit comments

Comments
 (0)