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
4869e846
Commit
4869e846
authored
Jul 27, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Plain Diff
partly merged with sbromle/opencv fixes branch
parents
f08996bd
8506ce06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
internal.hpp
modules/core/include/opencv2/core/internal.hpp
+4
-5
stat.cpp
modules/core/src/stat.cpp
+2
-3
cap_openni.cpp
modules/highgui/src/cap_openni.cpp
+7
-2
No files found.
modules/core/include/opencv2/core/internal.hpp
View file @
4869e846
...
...
@@ -120,15 +120,15 @@ CV_INLINE IppiSize ippiSize(int width, int height)
# else
# define CV_SSSE3 0
# endif
# if defined __SSE4_1__ ||
_MSC_VER >= 1600
# if defined __SSE4_1__ ||
(defined _MSC_VER && _MSC_VER >= 1600)
# include <smmintrin.h>
# define CV_SSE4_1 1
# endif
# if defined __SSE4_2__ ||
_MSC_VER >= 1600
# if defined __SSE4_2__ ||
(defined _MSC_VER && _MSC_VER >= 1600)
# include <nmmintrin.h>
# define CV_SSE4_2 1
# endif
# if defined __AVX__ ||
_MSC_VER >= 1600
# if defined __AVX__ ||
(defined _MSC_VER && _MSC_VER >= 1600)
# include <immintrin.h>
# define CV_AVX 1
# endif
...
...
@@ -779,4 +779,4 @@ CV_EXPORTS bool icvCheckGlError(const char* file, const int line, const char* fu
#endif //__cplusplus
#endif // __OPENCV_CORE_INTERNAL_HPP__
\ No newline at end of file
#endif // __OPENCV_CORE_INTERNAL_HPP__
modules/core/src/stat.cpp
View file @
4869e846
...
...
@@ -225,7 +225,7 @@ template <>
int
countNonZero_
<
uchar
>
(
const
uchar
*
src
,
int
len
)
{
int
i
=
0
,
nz
=
0
;
#if
CV_SSE4_2
#if
(defined CV_SSE4_2 && CV_SSE4_2)
if
(
USE_SSE4_2
)
//5x-6x
{
__m128i
pattern
=
_mm_setzero_si128
();
...
...
@@ -2012,4 +2012,4 @@ cvNorm( const void* imgA, const void* imgB, int normType, const void* maskarr )
cv
::
extractImageCOI
(
imgB
,
b
);
return
!
maskarr
?
cv
::
norm
(
a
,
b
,
normType
)
:
cv
::
norm
(
a
,
b
,
normType
,
mask
);
}
\ No newline at end of file
}
modules/highgui/src/cap_openni.cpp
View file @
4869e846
...
...
@@ -44,7 +44,7 @@
#ifdef HAVE_OPENNI
#if TBB_INTERFACE_VERSION < 5000
#if
defined TBB_INTERFACE_VERSION &&
TBB_INTERFACE_VERSION < 5000
# undef HAVE_TBB
#endif
...
...
@@ -575,7 +575,12 @@ CvCapture_OpenNI::CvCapture_OpenNI( int index )
// Chose device according to index
xn
::
NodeInfoList
::
Iterator
it
=
devicesList
.
Begin
();
for
(
int
i
=
0
;
i
<
index
;
++
i
)
it
++
;
for
(
int
i
=
0
;
i
<
index
&&
it
!=
devicesList
.
End
();
++
i
)
it
++
;
if
(
it
==
devicesList
.
End
()
)
{
std
::
cerr
<<
"CvCapture_OpenNI::CvCapture_OpenNI : Failed device with index "
<<
index
<<
std
::
endl
;
return
;
}
xn
::
NodeInfo
deviceNode
=
*
it
;
status
=
context
.
CreateProductionTree
(
deviceNode
,
productionNode
);
...
...
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