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
b0927397
Commit
b0927397
authored
Aug 15, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2225 Rename getConvertData to getConvertElem to match the headers and documentation
parent
e578259a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
matrix.cpp
modules/core/src/matrix.cpp
+6
-6
No files found.
modules/core/src/matrix.cpp
View file @
b0927397
...
...
@@ -3262,7 +3262,7 @@ convertScaleData_(const void* _from, void* _to, int cn, double alpha, double bet
to
[
i
]
=
saturate_cast
<
T2
>
(
from
[
i
]
*
alpha
+
beta
);
}
static
ConvertData
getConvertData
(
int
fromType
,
int
toType
)
ConvertData
getConvertElem
(
int
fromType
,
int
toType
)
{
static
ConvertData
tab
[][
8
]
=
{{
convertData_
<
uchar
,
uchar
>
,
convertData_
<
uchar
,
schar
>
,
...
...
@@ -3307,7 +3307,7 @@ static ConvertData getConvertData(int fromType, int toType)
return
func
;
}
static
ConvertScaleData
getConvertScaleData
(
int
fromType
,
int
toType
)
ConvertScaleData
getConvertScaleElem
(
int
fromType
,
int
toType
)
{
static
ConvertScaleData
tab
[][
8
]
=
{{
convertScaleData_
<
uchar
,
uchar
>
,
convertScaleData_
<
uchar
,
schar
>
,
...
...
@@ -3537,7 +3537,7 @@ void SparseMat::convertTo( SparseMat& m, int rtype, double alpha ) const
if
(
alpha
==
1
)
{
ConvertData
cvtfunc
=
getConvert
Data
(
type
(),
rtype
);
ConvertData
cvtfunc
=
getConvert
Elem
(
type
(),
rtype
);
for
(
i
=
0
;
i
<
N
;
i
++
,
++
from
)
{
const
Node
*
n
=
from
.
node
();
...
...
@@ -3547,7 +3547,7 @@ void SparseMat::convertTo( SparseMat& m, int rtype, double alpha ) const
}
else
{
ConvertScaleData
cvtfunc
=
getConvertScale
Data
(
type
(),
rtype
);
ConvertScaleData
cvtfunc
=
getConvertScale
Elem
(
type
(),
rtype
);
for
(
i
=
0
;
i
<
N
;
i
++
,
++
from
)
{
const
Node
*
n
=
from
.
node
();
...
...
@@ -3574,7 +3574,7 @@ void SparseMat::convertTo( Mat& m, int rtype, double alpha, double beta ) const
if
(
alpha
==
1
&&
beta
==
0
)
{
ConvertData
cvtfunc
=
getConvert
Data
(
type
(),
rtype
);
ConvertData
cvtfunc
=
getConvert
Elem
(
type
(),
rtype
);
for
(
i
=
0
;
i
<
N
;
i
++
,
++
from
)
{
const
Node
*
n
=
from
.
node
();
...
...
@@ -3584,7 +3584,7 @@ void SparseMat::convertTo( Mat& m, int rtype, double alpha, double beta ) const
}
else
{
ConvertScaleData
cvtfunc
=
getConvertScale
Data
(
type
(),
rtype
);
ConvertScaleData
cvtfunc
=
getConvertScale
Elem
(
type
(),
rtype
);
for
(
i
=
0
;
i
<
N
;
i
++
,
++
from
)
{
const
Node
*
n
=
from
.
node
();
...
...
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