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
d37beb40
Commit
d37beb40
authored
Aug 12, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Matx33 * Point3 and Matx22 * Point operators (ticket #1299)
parent
50d70cf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+3
-3
No files found.
modules/core/include/opencv2/core/operations.hpp
View file @
d37beb40
...
...
@@ -625,14 +625,14 @@ Matx<_Tp, m, n> operator * (const Matx<_Tp, m, l>& a, const Matx<_Tp, l, n>& b)
template
<
typename
_Tp
>
static
inline
Point_
<
_Tp
>
operator
*
(
const
Matx
<
_Tp
,
2
,
2
>&
a
,
const
Point_
<
_Tp
>&
b
)
{
return
Point_
<
_Tp
>
(
a
*
Vec
<
_Tp
,
2
>
(
b
));
return
Point_
<
_Tp
>
(
a
*
Vec
<
_Tp
,
2
>
(
b
.
x
,
b
.
y
));
}
template
<
typename
_Tp
>
static
inline
Point3_
<
_Tp
>
operator
*
(
const
Matx
<
_Tp
,
3
,
3
>&
a
,
const
Point3_
<
_Tp
>&
b
)
{
return
Point3_
<
_Tp
>
(
a
*
Vec
<
_Tp
,
3
>
(
b
));
return
Point3_
<
_Tp
>
(
a
*
Vec
<
_Tp
,
3
>
(
b
.
x
,
b
.
y
,
b
.
z
));
}
...
...
@@ -653,7 +653,7 @@ Matx<_Tp, 4, 1> operator * (const Matx<_Tp, 4, 4>& a, const Point3_<_Tp>& b)
template
<
typename
_Tp
>
static
inline
Scalar
operator
*
(
const
Matx
<
_Tp
,
4
,
4
>&
a
,
const
Scalar
&
b
)
{
return
Scalar
(
a
*
Matx
<
_Tp
,
4
,
1
>
(
b
));
return
Scalar
(
a
*
Matx
<
_Tp
,
4
,
1
>
(
b
[
0
],
b
[
1
],
b
[
2
],
b
[
3
]
));
}
...
...
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