From 7b1bdf487e1b9a10f0261ddf5b9bc2b29895d101 Mon Sep 17 00:00:00 2001 From: Olly Date: Tue, 17 Dec 2024 23:17:46 +0000 Subject: [PATCH] Fix test --- Tests/matchtemplatemask.simba | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/matchtemplatemask.simba b/Tests/matchtemplatemask.simba index b7b65310e..d9163dce1 100644 --- a/Tests/matchtemplatemask.simba +++ b/Tests/matchtemplatemask.simba @@ -18,7 +18,7 @@ begin Assert(Abs(mat[maxLoc.Y, maxLoc.X] - maxValue) <= 0.05); end; except - WriteLn(Formula, ' :: ', mat.ArgMin(), ', ', mat.ArgMax(), ', ', Round(mat[mat.ArgMin().Y, mat.ArgMin().X], 1), ', ', Round(mat[mat.ArgMax().Y, mat.ArgMax().X], 1)); + WriteLn(Formula, ' :: ', mat.ArgMin, ', ', mat.ArgMax, ', ', Round(mat[mat.ArgMin.Y, mat.ArgMin.X], 1), ', ', Round(mat[mat.ArgMax.Y, mat.ArgMax.X], 1)); raise; end; end; @@ -31,8 +31,8 @@ begin try cache := TMatchTemplateCache.Create(img.toMatrix(), templ.ToMatrix(), formula); mat := MatchTemplateMask(cache, templ.ToMatrix(), formula); - Assert(mat.ArgMin() = minLoc); - Assert(mat.ArgMax() = maxLoc); + Assert(mat.ArgMin = minLoc); + Assert(mat.ArgMax = maxLoc); if (minValue <> 0) and (maxValue <> 0) then begin @@ -40,7 +40,7 @@ begin Assert(Abs(mat[maxLoc.Y, maxLoc.X] - maxValue) <= 0.05); end; except - WriteLn(Formula, ' :: ', mat.ArgMin(), ', ', mat.ArgMax(), ', ', Round(mat[mat.ArgMin().Y, mat.ArgMin().X], 1), ', ', Round(mat[mat.ArgMax().Y, mat.ArgMax().X], 1)); + WriteLn(Formula, ' :: ', mat.ArgMin, ', ', mat.ArgMax, ', ', Round(mat[mat.ArgMin.Y, mat.ArgMin.X], 1), ', ', Round(mat[mat.ArgMax.Y, mat.ArgMax.X], 1)); raise; finally cache.free();