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
4a3dfffd
Commit
4a3dfffd
authored
Jul 16, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11965 from alalek:issue_11944
parents
50751ae6
01558519
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
perf_warp.cpp
modules/imgproc/perf/perf_warp.cpp
+5
-3
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+4
-1
No files found.
modules/imgproc/perf/perf_warp.cpp
View file @
4a3dfffd
...
...
@@ -271,7 +271,7 @@ void update_map(const Mat& src, Mat& map_x, Mat& map_y, const int remapMode )
}
}
PERF_TEST
(
Transform
,
getPerspectiveTransform
)
PERF_TEST
(
Transform
,
getPerspectiveTransform
_1000
)
{
unsigned
int
size
=
8
;
Mat
source
(
1
,
size
/
2
,
CV_32FC2
);
...
...
@@ -280,12 +280,14 @@ PERF_TEST(Transform, getPerspectiveTransform)
declare
.
in
(
source
,
destination
,
WARMUP_RNG
);
TEST_CYCLE
()
PERF_SAMPLE_BEGIN
()
for
(
int
i
=
0
;
i
<
1000
;
i
++
)
{
transformCoefficient
=
getPerspectiveTransform
(
source
,
destination
);
}
PERF_SAMPLE_END
()
SANITY_CHECK
(
transformCoefficient
,
1e-5
);
SANITY_CHECK
_NOTHING
(
);
}
}
// namespace
modules/imgproc/src/imgwarp.cpp
View file @
4a3dfffd
...
...
@@ -50,6 +50,7 @@
#include "precomp.hpp"
#include "opencl_kernels_imgproc.hpp"
#include "hal_replacement.hpp"
#include <opencv2/core/utils/configuration.private.hpp>
#include "opencv2/core/hal/intrin.hpp"
#include "opencv2/core/openvx/ovx_defs.hpp"
#include "opencv2/core/softfloat.hpp"
...
...
@@ -3061,7 +3062,9 @@ cv::Mat cv::getPerspectiveTransform( const Point2f src[], const Point2f dst[] )
b
[
i
+
4
]
=
dst
[
i
].
y
;
}
solve
(
A
,
B
,
X
,
DECOMP_SVD
);
static
int
param_IMGPROC_GETPERSPECTIVETRANSFORM_SOLVE_METHOD
=
(
int
)
utils
::
getConfigurationParameterSizeT
(
"OPENCV_IMGPROC_GETPERSPECTIVETRANSFORM_SOLVE_METHOD"
,
(
size_t
)
DECOMP_LU
);
solve
(
A
,
B
,
X
,
param_IMGPROC_GETPERSPECTIVETRANSFORM_SOLVE_METHOD
);
M
.
ptr
<
double
>
()[
8
]
=
1.
;
return
M
;
...
...
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