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
1df10553
Commit
1df10553
authored
Jan 25, 2013
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs #1373, #2629, #2719
parent
d8f749da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
20 deletions
+7
-20
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+1
-1
types_c.h
modules/core/include/opencv2/core/types_c.h
+4
-18
matrix.cpp
modules/core/src/matrix.cpp
+2
-1
No files found.
modules/core/include/opencv2/core/operations.hpp
View file @
1df10553
...
...
@@ -716,7 +716,7 @@ template<typename _Tp, int m> struct CV_EXPORTS Matx_DetOp
double
operator
()(
const
Matx
<
_Tp
,
m
,
m
>&
a
)
const
{
Matx
<
_Tp
,
m
,
m
>
temp
=
a
;
double
p
=
LU
(
temp
.
val
,
m
,
m
,
0
,
0
,
0
);
double
p
=
LU
(
temp
.
val
,
m
*
sizeof
(
_Tp
)
,
m
,
0
,
0
,
0
);
if
(
p
==
0
)
return
p
;
for
(
int
i
=
0
;
i
<
m
;
i
++
)
...
...
modules/core/include/opencv2/core/types_c.h
View file @
1df10553
...
...
@@ -342,9 +342,8 @@ CV_INLINE int cvFloor( double value )
return
i
-
(
i
>
value
);
#else
int
i
=
cvRound
(
value
);
Cv32suf
diff
;
diff
.
f
=
(
float
)(
value
-
i
);
return
i
-
(
diff
.
i
<
0
);
float
diff
=
(
float
)(
value
-
i
);
return
i
-
(
diff
<
0
);
#endif
}
...
...
@@ -360,9 +359,8 @@ CV_INLINE int cvCeil( double value )
return
i
+
(
i
<
value
);
#else
int
i
=
cvRound
(
value
);
Cv32suf
diff
;
diff
.
f
=
(
float
)(
i
-
value
);
return
i
+
(
diff
.
i
<
0
);
float
diff
=
(
float
)(
i
-
value
);
return
i
+
(
diff
<
0
);
#endif
}
...
...
@@ -371,31 +369,19 @@ CV_INLINE int cvCeil( double value )
CV_INLINE
int
cvIsNaN
(
double
value
)
{
#if 1
/*defined _MSC_VER || defined __BORLANDC__
return _isnan(value);
#elif defined __GNUC__
return isnan(value);
#else*/
Cv64suf
ieee754
;
ieee754
.
f
=
value
;
return
((
unsigned
)(
ieee754
.
u
>>
32
)
&
0x7fffffff
)
+
((
unsigned
)
ieee754
.
u
!=
0
)
>
0x7ff00000
;
#endif
}
CV_INLINE
int
cvIsInf
(
double
value
)
{
#if 1
/*defined _MSC_VER || defined __BORLANDC__
return !_finite(value);
#elif defined __GNUC__
return isinf(value);
#else*/
Cv64suf
ieee754
;
ieee754
.
f
=
value
;
return
((
unsigned
)(
ieee754
.
u
>>
32
)
&
0x7fffffff
)
==
0x7ff00000
&&
(
unsigned
)
ieee754
.
u
==
0
;
#endif
}
...
...
modules/core/src/matrix.cpp
View file @
1df10553
...
...
@@ -830,7 +830,8 @@ int Mat::checkVector(int _elemChannels, int _depth, bool _requireContinuous) con
{
return
(
depth
()
==
_depth
||
_depth
<=
0
)
&&
(
isContinuous
()
||
!
_requireContinuous
)
&&
((
dims
==
2
&&
(((
rows
==
1
||
cols
==
1
)
&&
channels
()
==
_elemChannels
)
||
(
cols
==
_elemChannels
)))
||
((
dims
==
2
&&
(((
rows
==
1
||
cols
==
1
)
&&
channels
()
==
_elemChannels
)
||
(
cols
==
_elemChannels
&&
channels
()
==
1
)))
||
(
dims
==
3
&&
channels
()
==
1
&&
size
.
p
[
2
]
==
_elemChannels
&&
(
size
.
p
[
0
]
==
1
||
size
.
p
[
1
]
==
1
)
&&
(
isContinuous
()
||
step
.
p
[
1
]
==
step
.
p
[
2
]
*
size
.
p
[
2
])))
?
(
int
)(
total
()
*
channels
()
/
_elemChannels
)
:
-
1
;
...
...
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