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
d6add763
Commit
d6add763
authored
12 years ago
by
Vadim Pisarevsky
Committed by
OpenCV Buildbot
12 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #228 from Nerei:master
parents
aabb40e3
94c310fc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
5 deletions
+12
-5
core.hpp
modules/core/include/opencv2/core/core.hpp
+2
-0
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+5
-0
perf_fast.cpp
modules/features2d/perf/perf_fast.cpp
+1
-1
matchers.cpp
modules/features2d/src/matchers.cpp
+2
-2
matchers.cpp
modules/stitching/src/matchers.cpp
+1
-1
test_backgroundsubtractor_gbh.cpp
modules/video/test/test_backgroundsubtractor_gbh.cpp
+1
-1
No files found.
modules/core/include/opencv2/core/core.hpp
View file @
d6add763
...
...
@@ -1284,6 +1284,8 @@ public:
operator
_Tp
*
();
operator
const
_Tp
*
()
const
;
bool
operator
==
(
const
Ptr
<
_Tp
>&
ptr
)
const
;
_Tp
*
obj
;
//< the object pointer.
int
*
refcount
;
//< the associated reference counter
};
...
...
This diff is collapsed.
Click to expand it.
modules/core/include/opencv2/core/operations.hpp
View file @
d6add763
...
...
@@ -2690,6 +2690,11 @@ template<typename _Tp> template<typename _Tp2> inline const Ptr<_Tp2> Ptr<_Tp>::
return
p
;
}
template
<
typename
_Tp
>
inline
bool
Ptr
<
_Tp
>::
operator
==
(
const
Ptr
<
_Tp
>&
_ptr
)
const
{
return
refcount
==
_ptr
.
refcount
;
}
//// specializied implementations of Ptr::delete_obj() for classic OpenCV types
template
<>
CV_EXPORTS
void
Ptr
<
CvMat
>::
delete_obj
();
...
...
This diff is collapsed.
Click to expand it.
modules/features2d/perf/perf_fast.cpp
View file @
d6add763
...
...
@@ -31,7 +31,7 @@ PERF_TEST_P(fast, detect, testing::Combine(
declare
.
in
(
frame
);
Ptr
<
FeatureDetector
>
fd
=
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.FAST"
);
ASSERT_FALSE
(
fd
==
0
);
ASSERT_FALSE
(
fd
.
empty
()
);
fd
->
set
(
"threshold"
,
20
);
fd
->
set
(
"nonmaxSuppression"
,
true
);
fd
->
set
(
"type"
,
type
);
...
...
This diff is collapsed.
Click to expand it.
modules/features2d/src/matchers.cpp
View file @
d6add763
...
...
@@ -531,7 +531,7 @@ void FlannBasedMatcher::train()
void
FlannBasedMatcher
::
read
(
const
FileNode
&
fn
)
{
if
(
indexParams
==
0
)
if
(
indexParams
.
empty
()
)
indexParams
=
new
flann
::
IndexParams
();
FileNode
ip
=
fn
[
"indexParams"
];
...
...
@@ -570,7 +570,7 @@ void FlannBasedMatcher::read( const FileNode& fn)
};
}
if
(
searchParams
==
0
)
if
(
searchParams
.
empty
()
)
searchParams
=
new
flann
::
SearchParams
();
FileNode
sp
=
fn
[
"searchParams"
];
...
...
This diff is collapsed.
Click to expand it.
modules/stitching/src/matchers.cpp
View file @
d6add763
...
...
@@ -350,7 +350,7 @@ void SurfFeaturesFinder::find(const Mat &image, ImageFeatures &features)
Mat
gray_image
;
CV_Assert
(
image
.
type
()
==
CV_8UC3
);
cvtColor
(
image
,
gray_image
,
CV_BGR2GRAY
);
if
(
surf
==
0
)
if
(
surf
.
empty
()
)
{
detector_
->
detect
(
gray_image
,
features
.
keypoints
);
extractor_
->
compute
(
gray_image
,
features
.
keypoints
,
features
.
descriptors
);
...
...
This diff is collapsed.
Click to expand it.
modules/video/test/test_backgroundsubtractor_gbh.cpp
View file @
d6add763
...
...
@@ -41,7 +41,7 @@ void CV_BackgroundSubtractorTest::run(int)
Algorithm
::
create
<
BackgroundSubtractorGMG
>
(
"BackgroundSubtractor.GMG"
);
Mat
fgmask
;
if
(
fgbg
==
NULL
)
if
(
fgbg
.
empty
()
)
CV_Error
(
CV_StsError
,
"Failed to create Algorithm
\n
"
);
/**
...
...
This diff is collapsed.
Click to expand it.
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