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
3a873cb0
Commit
3a873cb0
authored
Nov 16, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated some included headers
parent
a5b58c00
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
14 deletions
+21
-14
find_obj_calonder.cpp
samples/c/find_obj_calonder.cpp
+5
-4
grabcut.cpp
samples/c/grabcut.cpp
+3
-2
bagofwords_classification.cpp
samples/cpp/bagofwords_classification.cpp
+2
-1
generic_descriptor_match.cpp
samples/cpp/generic_descriptor_match.cpp
+2
-3
matching_to_many_images.cpp
samples/cpp/matching_to_many_images.cpp
+7
-3
meanshift_segmentation.cpp
samples/cpp/meanshift_segmentation.cpp
+2
-1
No files found.
samples/c/find_obj_calonder.cpp
View file @
3a873cb0
#include <highgui.h>
#include "opencv2/highgui/highgui.hpp"
#include <opencv2/core/core.hpp>
#include "opencv2/core/core.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include <opencv2/features2d/features2d.hpp>
#include "opencv2/features2d/features2d.hpp"
#include <iostream>
#include <iostream>
#include <fstream>
#include <fstream>
...
...
samples/c/grabcut.cpp
View file @
3a873cb0
#include <highgui.h>
#include "opencv2/highgui/highgui.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <iostream>
using
namespace
std
;
using
namespace
std
;
...
...
samples/cpp/bagofwords_classification.cpp
View file @
3a873cb0
#include
<highgui.h>
#include
"opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/ml/ml.hpp"
#include "opencv2/ml/ml.hpp"
#include <fstream>
#include <fstream>
#include <iostream>
#include <iostream>
#include <memory>
#include <memory>
...
...
samples/cpp/generic_descriptor_match.cpp
View file @
3a873cb0
#include "opencv2/core/core.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/features2d/features2d.hpp"
#include <highgui.h>
#include "opencv2/highgui/highgui.hpp"
#include <cstdio>
#include <cstdio>
using
namespace
cv
;
using
namespace
cv
;
...
...
samples/cpp/matching_to_many_images.cpp
View file @
3a873cb0
#include
<highgui.h>
#include
"opencv2/highgui/highgui.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/features2d/features2d.hpp"
#include <iostream>
#include <iostream>
#include <fstream>
#include <fstream>
using
namespace
cv
;
using
namespace
cv
;
using
namespace
std
;
using
namespace
std
;
const
char
dlmtr
=
'/'
;
void
maskMatchesByTrainImgIdx
(
const
vector
<
DMatch
>&
matches
,
int
trainImgIdx
,
vector
<
char
>&
mask
);
void
maskMatchesByTrainImgIdx
(
const
vector
<
DMatch
>&
matches
,
int
trainImgIdx
,
vector
<
char
>&
mask
);
void
readTrainFilenames
(
const
string
&
filename
,
string
&
dirName
,
vector
<
string
>&
trainFilenames
);
void
readTrainFilenames
(
const
string
&
filename
,
string
&
dirName
,
vector
<
string
>&
trainFilenames
);
...
@@ -89,6 +88,7 @@ int main(int argc, char** argv)
...
@@ -89,6 +88,7 @@ int main(int argc, char** argv)
CV_Assert
(
queryPoints
.
size
()
==
matches
.
size
()
);
CV_Assert
(
queryPoints
.
size
()
==
matches
.
size
()
);
cout
<<
">"
<<
endl
;
cout
<<
">"
<<
endl
;
cout
<<
"< 6.) Save results..."
<<
endl
;
Mat
drawImg
;
Mat
drawImg
;
vector
<
char
>
mask
;
vector
<
char
>
mask
;
for
(
size_t
i
=
0
;
i
<
trainImgCollection
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
trainImgCollection
.
size
();
i
++
)
...
@@ -99,6 +99,8 @@ int main(int argc, char** argv)
...
@@ -99,6 +99,8 @@ int main(int argc, char** argv)
imwrite
(
string
(
argv
[
6
])
+
"/res_"
+
trainFilenames
[
usedTrainImgIdxs
[
i
]]
+
".png"
,
drawImg
);
imwrite
(
string
(
argv
[
6
])
+
"/res_"
+
trainFilenames
[
usedTrainImgIdxs
[
i
]]
+
".png"
,
drawImg
);
}
}
cout
<<
">"
<<
endl
;
return
0
;
return
0
;
}
}
...
@@ -116,6 +118,8 @@ void maskMatchesByTrainImgIdx( const vector<DMatch>& matches, int trainImgIdx, v
...
@@ -116,6 +118,8 @@ void maskMatchesByTrainImgIdx( const vector<DMatch>& matches, int trainImgIdx, v
void
readTrainFilenames
(
const
string
&
filename
,
string
&
dirName
,
vector
<
string
>&
trainFilenames
)
void
readTrainFilenames
(
const
string
&
filename
,
string
&
dirName
,
vector
<
string
>&
trainFilenames
)
{
{
const
char
dlmtr
=
'/'
;
trainFilenames
.
clear
();
trainFilenames
.
clear
();
ifstream
file
(
filename
.
c_str
()
);
ifstream
file
(
filename
.
c_str
()
);
...
...
samples/cpp/meanshift_segmentation.cpp
View file @
3a873cb0
#include
<highgui.h>
#include
"opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <iostream>
using
namespace
cv
;
using
namespace
cv
;
...
...
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