Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
3e910e14
Commit
3e910e14
authored
Oct 23, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed fail of descriptor-sift test (ticket 567)
parent
761f76c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
afeatures2d.cpp
tests/cv/src/afeatures2d.cpp
+19
-19
tsysa.cpp
tests/cv/src/tsysa.cpp
+3
-3
No files found.
tests/cv/src/afeatures2d.cpp
View file @
3e910e14
...
...
@@ -166,13 +166,13 @@ protected:
Ptr
<
FeatureDetector
>
fdetector
;
};
CV_FeatureDetectorTest
fastTest
(
"detector
_
fast"
,
createFeatureDetector
(
"FAST"
)
);
CV_FeatureDetectorTest
gfttTest
(
"detector
_
gftt"
,
createFeatureDetector
(
"GFTT"
)
);
CV_FeatureDetectorTest
harrisTest
(
"detector
_
harris"
,
createFeatureDetector
(
"HARRIS"
)
);
CV_FeatureDetectorTest
mserTest
(
"detector
_
mser"
,
createFeatureDetector
(
"MSER"
)
);
CV_FeatureDetectorTest
siftTest
(
"detector
_
sift"
,
createFeatureDetector
(
"SIFT"
)
);
CV_FeatureDetectorTest
starTest
(
"detector
_
star"
,
createFeatureDetector
(
"STAR"
)
);
CV_FeatureDetectorTest
surfTest
(
"detector
_
surf"
,
createFeatureDetector
(
"SURF"
)
);
CV_FeatureDetectorTest
fastTest
(
"detector
-
fast"
,
createFeatureDetector
(
"FAST"
)
);
CV_FeatureDetectorTest
gfttTest
(
"detector
-
gftt"
,
createFeatureDetector
(
"GFTT"
)
);
CV_FeatureDetectorTest
harrisTest
(
"detector
-
harris"
,
createFeatureDetector
(
"HARRIS"
)
);
CV_FeatureDetectorTest
mserTest
(
"detector
-
mser"
,
createFeatureDetector
(
"MSER"
)
);
CV_FeatureDetectorTest
siftTest
(
"detector
-
sift"
,
createFeatureDetector
(
"SIFT"
)
);
CV_FeatureDetectorTest
starTest
(
"detector
-
star"
,
createFeatureDetector
(
"STAR"
)
);
CV_FeatureDetectorTest
surfTest
(
"detector
-
surf"
,
createFeatureDetector
(
"SURF"
)
);
/****************************************************************************************\
* Regression tests for descriptor extractors. *
...
...
@@ -215,8 +215,8 @@ static Mat readMatFromBin( const string& filename )
class
CV_DescriptorExtractorTest
:
public
CvTest
{
public
:
CV_DescriptorExtractorTest
(
const
char
*
testName
,
float
_
n
ormDif
,
const
Ptr
<
DescriptorExtractor
>&
_dextractor
,
float
_prevTime
)
:
CvTest
(
testName
,
"cv::DescriptorExtractor::compute"
),
normDif
(
_n
ormDif
),
prevTime
(
_prevTime
),
dextractor
(
_dextractor
)
{}
CV_DescriptorExtractorTest
(
const
char
*
testName
,
float
_
maxN
ormDif
,
const
Ptr
<
DescriptorExtractor
>&
_dextractor
,
float
_prevTime
)
:
CvTest
(
testName
,
"cv::DescriptorExtractor::compute"
),
maxNormDif
(
_maxN
ormDif
),
prevTime
(
_prevTime
),
dextractor
(
_dextractor
)
{}
protected
:
virtual
void
createDescriptorExtractor
()
{}
...
...
@@ -272,9 +272,9 @@ protected:
Mat
validDescriptors
=
readDescriptors
();
if
(
!
validDescriptors
.
empty
()
)
{
double
normVal
=
norm
(
calcDescriptors
,
validDescriptors
,
NORM_INF
);
ts
->
printf
(
CvTS
::
LOG
,
"nofm (inf) BTW valid and calculated float descriptors = %f
\n
"
,
normVal
);
if
(
normVal
>
n
ormDif
)
double
normVal
ue
=
norm
(
calcDescriptors
,
validDescriptors
,
NORM_INF
);
ts
->
printf
(
CvTS
::
LOG
,
"nofm (inf) BTW valid and calculated float descriptors = %f
\n
"
,
normVal
ue
);
if
(
normVal
ue
>
maxN
ormDif
)
ts
->
set_failed_test_info
(
CvTS
::
FAIL_BAD_ACCURACY
);
}
else
...
...
@@ -300,7 +300,7 @@ protected:
return
true
;
}
const
float
n
ormDif
;
const
float
maxN
ormDif
;
const
float
prevTime
;
Ptr
<
DescriptorExtractor
>
dextractor
;
...
...
@@ -320,20 +320,20 @@ public:
}
};
CV_DescriptorExtractorTest
siftDescriptorTest
(
"descriptor
_sift"
,
0.001
f
,
CV_DescriptorExtractorTest
siftDescriptorTest
(
"descriptor
-sift"
,
0.008
f
,
createDescriptorExtractor
(
"SIFT"
),
8.06652
f
);
CV_DescriptorExtractorTest
surfDescriptorTest
(
"descriptor
_
surf"
,
0.004
f
,
CV_DescriptorExtractorTest
surfDescriptorTest
(
"descriptor
-
surf"
,
0.004
f
,
createDescriptorExtractor
(
"SURF"
),
0.147372
f
);
//CV_DescriptorExtractorTest siftDescriptorTest( "descriptor
_
opponent_sift", 0.001f,
//CV_DescriptorExtractorTest siftDescriptorTest( "descriptor
-
opponent_sift", 0.001f,
// createDescriptorExtractor("OpponentSIFT"), 8.06652f );
//CV_DescriptorExtractorTest surfDescriptorTest( "descriptor
_
opponent_surf", 0.004f,
//CV_DescriptorExtractorTest surfDescriptorTest( "descriptor
-
opponent_surf", 0.004f,
// createDescriptorExtractor("OpponentSURF"), 0.147372f );
#if CV_SSE2
CV_CalonderDescriptorExtractorTest
<
uchar
>
ucharCalonderTest
(
"descriptor
_calonder_
uchar"
,
CV_CalonderDescriptorExtractorTest
<
uchar
>
ucharCalonderTest
(
"descriptor
-calonder-
uchar"
,
std
::
numeric_limits
<
float
>::
epsilon
()
+
1
,
0.0132175
f
);
CV_CalonderDescriptorExtractorTest
<
float
>
floatCalonderTest
(
"descriptor
_calonder_
float"
,
CV_CalonderDescriptorExtractorTest
<
float
>
floatCalonderTest
(
"descriptor
-calonder-
float"
,
std
::
numeric_limits
<
float
>::
epsilon
(),
0.0221308
f
);
#endif // CV_SSE2
tests/cv/src/tsysa.cpp
View file @
3e910e14
...
...
@@ -55,9 +55,9 @@ const char* blacklist[] =
"chessboard-subpixel"
,
//ticket 473
//"color-luv", //ticket 502
"descriptor_
sift"
,
//ticket 567
"descriptor
_
surf"
,
//ticket 568
"detector
_
surf"
,
//ticket 578
//"descriptor-
sift", //ticket 567
"descriptor
-
surf"
,
//ticket 568
"detector
-
surf"
,
//ticket 578
"filter-generic"
,
"flann_saved"
,
//ticket 618
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment