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
32df09c2
Commit
32df09c2
authored
Sep 15, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7287 from seanm:master
parents
05b15943
5357e28a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
utility.hpp
modules/core/include/opencv2/core/utility.hpp
+7
-7
bgfg_KNN.cpp
modules/video/src/bgfg_KNN.cpp
+3
-3
precomp.hpp
modules/videoio/src/precomp.hpp
+1
-1
No files found.
modules/core/include/opencv2/core/utility.hpp
View file @
32df09c2
...
...
@@ -495,8 +495,8 @@ void Mat::forEach_impl(const Functor& operation) {
{
public
:
PixelOperationWrapper
(
Mat_
<
_Tp
>*
const
frame
,
const
Functor
&
_operation
)
:
mat
(
frame
),
op
(
_operation
)
{}
;
virtual
~
PixelOperationWrapper
(){}
;
:
mat
(
frame
),
op
(
_operation
)
{}
virtual
~
PixelOperationWrapper
(){}
// ! Overloaded virtual operator
// convert range call to row call.
virtual
void
operator
()(
const
Range
&
range
)
const
{
...
...
@@ -525,7 +525,7 @@ void Mat::forEach_impl(const Functor& operation) {
this
->
rowCall
(
&
idx
[
0
],
COLS
,
DIMS
);
}
}
}
;
}
private
:
Mat_
<
_Tp
>*
const
mat
;
const
Functor
op
;
...
...
@@ -562,12 +562,12 @@ void Mat::forEach_impl(const Functor& operation) {
op
(
*
pixel
++
,
static_cast
<
const
int
*>
(
idx
));
idx
[
1
]
++
;
}
}
;
}
PixelOperationWrapper
&
operator
=
(
const
PixelOperationWrapper
&
)
{
CV_Assert
(
false
);
// We can not remove this implementation because Visual Studio warning C4822.
return
*
this
;
}
;
}
};
parallel_for_
(
cv
::
Range
(
0
,
LINES
),
PixelOperationWrapper
(
reinterpret_cast
<
Mat_
<
_Tp
>*>
(
this
),
operation
));
...
...
@@ -650,8 +650,8 @@ private:
virtual
void
deleteDataInstance
(
void
*
pData
)
const
{
delete
(
T
*
)
pData
;}
// Wrapper to release data by template
// Disable TLS copy operations
TLSData
(
TLSData
&
)
{}
;
TLSData
&
operator
=
(
const
TLSData
&
)
{
return
*
this
;}
;
TLSData
(
TLSData
&
)
{}
TLSData
&
operator
=
(
const
TLSData
&
)
{
return
*
this
;}
};
/** @brief Designed for command line parsing
...
...
modules/video/src/bgfg_KNN.cpp
View file @
32df09c2
...
...
@@ -319,7 +319,7 @@ CV_INLINE void
{
m_nNextShortUpdate
[
pixel
]
=
(
uchar
)(
rand
()
%
m_nShortUpdate
);
};
}
;
}
CV_INLINE
int
_cvCheckPixelBackgroundNP
(
long
pixel
,
...
...
@@ -436,7 +436,7 @@ CV_INLINE int
};
}
return
0
;
}
;
}
CV_INLINE
void
icvUpdatePixelBackgroundNP
(
const
Mat
&
_src
,
Mat
&
_dst
,
...
...
@@ -554,7 +554,7 @@ CV_INLINE void
i
++
;
}
}
}
;
}
...
...
modules/videoio/src/precomp.hpp
View file @
32df09c2
...
...
@@ -192,6 +192,6 @@ namespace cv
Ptr
<
IVideoCapture
>
createGPhoto2Capture
(
int
index
);
Ptr
<
IVideoCapture
>
createGPhoto2Capture
(
const
String
&
deviceName
);
}
;
}
#endif
/* __VIDEOIO_H_ */
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