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
08848c56
Commit
08848c56
authored
Apr 28, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3965 from Dikay900:2_4_diff_to_master_2
parents
ebe97909
901d4995
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
34 additions
and
7 deletions
+34
-7
OpenCVDetectTBB.cmake
cmake/OpenCVDetectTBB.cmake
+2
-0
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+1
-1
stitcher.cpp
modules/stitching/src/stitcher.cpp
+1
-1
CMakeLists.txt
samples/CMakeLists.txt
+4
-0
qt_opengl.cpp
samples/cpp/Qt_sample/qt_opengl.cpp
+3
-0
freak_demo.cpp
samples/cpp/freak_demo.cpp
+1
-1
stereo_match.cpp
samples/cpp/stereo_match.cpp
+12
-1
stitching_detailed.cpp
samples/cpp/stitching_detailed.cpp
+1
-1
video_writer.cpp
samples/gpu/video_writer.cpp
+2
-1
CMakeLists.txt
samples/python2/CMakeLists.txt
+6
-0
plane_tracker.py
samples/python2/plane_tracker.py
+1
-1
No files found.
cmake/OpenCVDetectTBB.cmake
View file @
08848c56
...
...
@@ -63,6 +63,8 @@ if(NOT HAVE_TBB)
set
(
_TBB_LIB_PATH
"
${
_TBB_LIB_PATH
}
/vc10"
)
elseif
(
MSVC11
)
set
(
_TBB_LIB_PATH
"
${
_TBB_LIB_PATH
}
/vc11"
)
elseif
(
MSVC12
)
set
(
_TBB_LIB_PATH
"
${
_TBB_LIB_PATH
}
/vc12"
)
endif
()
set
(
TBB_LIB_DIR
"
${
_TBB_LIB_PATH
}
"
CACHE PATH
"Full path of TBB library directory"
)
link_directories
(
"
${
TBB_LIB_DIR
}
"
)
...
...
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
08848c56
...
...
@@ -879,7 +879,7 @@ CV_EXPORTS Mat windowedMatchingMask( const vector<KeyPoint>& keypoints1, const v
/*
* OpponentColorDescriptorExtractor
*
* Adapts a descriptor extractor to compute descripors in Opponent Color Space
* Adapts a descriptor extractor to compute descrip
t
ors in Opponent Color Space
* (refer to van de Sande et al., CGIV 2008 "Color Descriptors for Object Category Recognition").
* Input RGB image is transformed in Opponent Color Space. Then unadapted descriptor extractor
* (set in constructor) computes descriptors on each of the three channel and concatenate
...
...
modules/stitching/src/stitcher.cpp
View file @
08848c56
...
...
@@ -478,7 +478,7 @@ void Stitcher::estimateCameraParams()
{
vector
<
Mat
>
rmats
;
for
(
size_t
i
=
0
;
i
<
cameras_
.
size
();
++
i
)
rmats
.
push_back
(
cameras_
[
i
].
R
);
rmats
.
push_back
(
cameras_
[
i
].
R
.
clone
()
);
detail
::
waveCorrect
(
rmats
,
wave_correct_kind_
);
for
(
size_t
i
=
0
;
i
<
cameras_
.
size
();
++
i
)
cameras_
[
i
].
R
=
rmats
[
i
];
...
...
samples/CMakeLists.txt
View file @
08848c56
...
...
@@ -25,6 +25,10 @@ if(INSTALL_C_EXAMPLES)
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ COMPONENT samples
)
endif
()
if
(
INSTALL_PYTHON_EXAMPLES
)
add_subdirectory
(
python2
)
endif
()
#
# END OF BUILD CASE 1: Build samples with library sources
#
...
...
samples/cpp/Qt_sample/qt_opengl.cpp
View file @
08848c56
...
...
@@ -13,6 +13,9 @@
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#if defined _MSC_VER && _MSC_VER >= 1600
#include <windows.h>
#endif
#include <GL/gl.h>
#endif
...
...
samples/cpp/freak_demo.cpp
View file @
08848c56
...
...
@@ -87,7 +87,7 @@ int main( int argc, char** argv ) {
// DESCRIPTOR
// Our proposed FREAK descriptor
// (roation invariance, scale invariance, pattern radius corresponding to SMALLEST_KP_SIZE,
// (ro
t
ation invariance, scale invariance, pattern radius corresponding to SMALLEST_KP_SIZE,
// number of octaves, optional vector containing the selected pairs)
// FREAK extractor(true, true, 22, 4, std::vector<int>());
FREAK
extractor
;
...
...
samples/cpp/stereo_match.cpp
View file @
08848c56
...
...
@@ -159,7 +159,18 @@ int main(int argc, char** argv)
Mat
img1
=
imread
(
img1_filename
,
color_mode
);
Mat
img2
=
imread
(
img2_filename
,
color_mode
);
if
(
scale
!=
1.
f
)
if
(
img1
.
empty
())
{
printf
(
"Command-line parameter error: could not load the first input image file
\n
"
);
return
-
1
;
}
if
(
img2
.
empty
())
{
printf
(
"Command-line parameter error: could not load the second input image file
\n
"
);
return
-
1
;
}
if
(
scale
!=
1.
f
)
{
Mat
temp1
,
temp2
;
int
method
=
scale
<
1
?
INTER_AREA
:
INTER_CUBIC
;
...
...
samples/cpp/stitching_detailed.cpp
View file @
08848c56
...
...
@@ -516,7 +516,7 @@ int main(int argc, char* argv[])
{
vector
<
Mat
>
rmats
;
for
(
size_t
i
=
0
;
i
<
cameras
.
size
();
++
i
)
rmats
.
push_back
(
cameras
[
i
].
R
);
rmats
.
push_back
(
cameras
[
i
].
R
.
clone
()
);
waveCorrect
(
rmats
,
wave_correct
);
for
(
size_t
i
=
0
;
i
<
cameras
.
size
();
++
i
)
cameras
[
i
].
R
=
rmats
[
i
];
...
...
samples/gpu/video_writer.cpp
View file @
08848c56
...
...
@@ -63,7 +63,8 @@ int main(int argc, const char* argv[])
{
std
::
cout
<<
"Open GPU Writer"
<<
std
::
endl
;
d_writer
.
open
(
"output_gpu.avi"
,
frame
.
size
(),
FPS
);
const
cv
::
String
outputFilename
=
"output_gpu.avi"
;
d_writer
.
open
(
outputFilename
,
frame
.
size
(),
FPS
);
}
d_frame
.
upload
(
frame
);
...
...
samples/python2/CMakeLists.txt
0 → 100644
View file @
08848c56
if
(
INSTALL_PYTHON_EXAMPLES
)
file
(
GLOB install_list *.py
)
install
(
FILES
${
install_list
}
DESTINATION
${
OPENCV_SAMPLES_SRC_INSTALL_PATH
}
/python2
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ COMPONENT samples
)
endif
()
samples/python2/plane_tracker.py
View file @
08848c56
...
...
@@ -73,7 +73,7 @@ class PlaneTracker:
descs
.
append
(
desc
)
descs
=
np
.
uint8
(
descs
)
self
.
matcher
.
add
([
descs
])
target
=
PlanarTarget
(
image
=
image
,
rect
=
rect
,
keypoints
=
points
,
descrs
=
descs
,
data
=
None
)
target
=
PlanarTarget
(
image
=
image
,
rect
=
rect
,
keypoints
=
points
,
descrs
=
descs
,
data
=
data
)
self
.
targets
.
append
(
target
)
def
clear
(
self
):
...
...
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