Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
4f6e1c85
Unverified
Commit
4f6e1c85
authored
Nov 08, 2018
by
Vadim Pisarevsky
Committed by
GitHub
Nov 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove obsolete C API in the following modules: photo, video, imgcodecs, videoio (#1880)
parent
2017be45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
20 deletions
+14
-20
map_test.cpp
modules/reg/samples/map_test.cpp
+14
-17
precomp.hpp
modules/xobjdetect/src/precomp.hpp
+0
-2
waldboost_detector.cpp
...objdetect/tools/waldboost_detector/waldboost_detector.cpp
+0
-1
No files found.
modules/reg/samples/map_test.cpp
View file @
4f6e1c85
...
...
@@ -39,9 +39,6 @@
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp> // OpenCV window I/O
#include <opencv2/imgproc.hpp> // OpenCV image transformations
#include <opencv2/imgproc/types_c.h>
#include <opencv2/imgcodecs/imgcodecs_c.h>
#include <opencv2/highgui/highgui_c.h>
#ifdef COMPARE_FEATURES
#include <opencv2/xfeatures2d.hpp>
...
...
@@ -73,9 +70,9 @@ static void showDifference(const Mat& image1, const Mat& image2, const char* tit
image1
.
convertTo
(
img1
,
CV_32FC3
);
image2
.
convertTo
(
img2
,
CV_32FC3
);
if
(
img1
.
channels
()
!=
1
)
cvtColor
(
img1
,
img1
,
C
V
_RGB2GRAY
);
cvtColor
(
img1
,
img1
,
C
OLOR
_RGB2GRAY
);
if
(
img2
.
channels
()
!=
1
)
cvtColor
(
img2
,
img2
,
C
V
_RGB2GRAY
);
cvtColor
(
img2
,
img2
,
C
OLOR
_RGB2GRAY
);
Mat
imgDiff
;
img1
.
copyTo
(
imgDiff
);
...
...
@@ -115,8 +112,8 @@ static void testShift(const Mat& img1)
showDifference
(
img1
,
dest
,
DIFF_REGPIX_IM
);
waitKey
(
0
);
cvD
estroyWindow
(
DIFF_IM
);
cvD
estroyWindow
(
DIFF_REGPIX_IM
);
d
estroyWindow
(
DIFF_IM
);
d
estroyWindow
(
DIFF_REGPIX_IM
);
}
static
void
testEuclidean
(
const
Mat
&
img1
)
...
...
@@ -152,8 +149,8 @@ static void testEuclidean(const Mat& img1)
showDifference
(
img1
,
dest
,
DIFF_REGPIX_IM
);
waitKey
(
0
);
cvD
estroyWindow
(
DIFF_IM
);
cvD
estroyWindow
(
DIFF_REGPIX_IM
);
d
estroyWindow
(
DIFF_IM
);
d
estroyWindow
(
DIFF_REGPIX_IM
);
}
static
void
testSimilarity
(
const
Mat
&
img1
)
...
...
@@ -190,8 +187,8 @@ static void testSimilarity(const Mat& img1)
showDifference
(
img1
,
dest
,
DIFF_REGPIX_IM
);
waitKey
(
0
);
cvD
estroyWindow
(
DIFF_IM
);
cvD
estroyWindow
(
DIFF_REGPIX_IM
);
d
estroyWindow
(
DIFF_IM
);
d
estroyWindow
(
DIFF_REGPIX_IM
);
}
static
void
testAffine
(
const
Mat
&
img1
)
...
...
@@ -224,8 +221,8 @@ static void testAffine(const Mat& img1)
showDifference
(
img1
,
dest
,
DIFF_REGPIX_IM
);
waitKey
(
0
);
cvD
estroyWindow
(
DIFF_IM
);
cvD
estroyWindow
(
DIFF_REGPIX_IM
);
d
estroyWindow
(
DIFF_IM
);
d
estroyWindow
(
DIFF_REGPIX_IM
);
}
static
void
testProjective
(
const
Mat
&
img1
)
...
...
@@ -256,8 +253,8 @@ static void testProjective(const Mat& img1)
showDifference
(
img1
,
dest
,
DIFF_REGPIX_IM
);
waitKey
(
0
);
cvD
estroyWindow
(
DIFF_IM
);
cvD
estroyWindow
(
DIFF_REGPIX_IM
);
d
estroyWindow
(
DIFF_IM
);
d
estroyWindow
(
DIFF_REGPIX_IM
);
}
#ifdef COMPARE_FEATURES
...
...
@@ -273,11 +270,11 @@ static void calcHomographyFeature(const Mat& image1, const Mat& image2)
Mat
gray_image2
;
// Convert to Grayscale
if
(
image1
.
channels
()
!=
1
)
cvtColor
(
image1
,
gray_image1
,
C
V
_RGB2GRAY
);
cvtColor
(
image1
,
gray_image1
,
C
OLOR
_RGB2GRAY
);
else
image1
.
copyTo
(
gray_image1
);
if
(
image2
.
channels
()
!=
1
)
cvtColor
(
image2
,
gray_image2
,
C
V
_RGB2GRAY
);
cvtColor
(
image2
,
gray_image2
,
C
OLOR
_RGB2GRAY
);
else
image2
.
copyTo
(
gray_image2
);
...
...
modules/xobjdetect/src/precomp.hpp
View file @
4f6e1c85
...
...
@@ -55,8 +55,6 @@ the use of this software, even if advised of the possibility of such damage.
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgcodecs/imgcodecs_c.h>
#include <opencv2/objdetect.hpp>
#include <algorithm>
...
...
modules/xobjdetect/tools/waldboost_detector/waldboost_detector.cpp
View file @
4f6e1c85
#include "opencv2/xobjdetect.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgcodecs/imgcodecs_c.h"
#include "opencv2/imgproc.hpp"
#include <iostream>
#include <cstdio>
...
...
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