Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
11c90ea2
Commit
11c90ea2
authored
Oct 18, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cvv: fix build
parent
bdf51c3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
call_meta_data.hpp
modules/cvv/include/opencv2/cvv/call_meta_data.hpp
+1
-9
changed_pixels_widget.cpp
modules/cvv/src/qtutil/filter/changed_pixels_widget.cpp
+3
-3
test_location.cpp
modules/cvv/test/test_location.cpp
+1
-1
No files found.
modules/cvv/include/opencv2/cvv/call_meta_data.hpp
View file @
11c90ea2
...
...
@@ -58,18 +58,10 @@ struct CallMetaData
}
// namespaces
#ifdef __GNUC__
#define CVVISUAL_FUNCTION_NAME_MACRO __PRETTY_FUNCTION__
#else
#define CVVISUAL_FUNCTION_NAME_MACRO __func__
#endif
/**
* @brief Creates an instance of CallMetaData with the location of the macro as
* value.
*/
#define CVVISUAL_LOCATION \
::cvv::impl::CallMetaData(__FILE__, __LINE__, \
CVVISUAL_FUNCTION_NAME_MACRO)
#define CVVISUAL_LOCATION ::cvv::impl::CallMetaData(__FILE__, __LINE__, CV_Func)
#endif
modules/cvv/src/qtutil/filter/changed_pixels_widget.cpp
View file @
11c90ea2
...
...
@@ -67,14 +67,14 @@ void changedPixelImage(const cv::Mat& mat0, const cv::Mat& mat1, cv::Mat& out)
template
<
int
Depth
,
int
Channels
>
void
changedPixelImage
(
const
cv
::
Mat
&
mat0
,
const
cv
::
Mat
&
mat1
,
cv
::
Mat
&
out
)
{
using
PixelInType
=
c
onst
c
vv
::
qtutil
::
PixelType
<
Depth
,
Channels
>
;
using
PixelInType
=
cvv
::
qtutil
::
PixelType
<
Depth
,
Channels
>
;
using
PixelOutType
=
cvv
::
qtutil
::
DepthType
<
CV_8U
>
;
cv
::
Mat
result
=
cv
::
Mat
::
zeros
(
mat0
.
rows
,
mat0
.
cols
,
CV_8U
);
bool
same
;
PixelInType
*
in0
;
PixelInType
*
in1
;
const
PixelInType
*
in0
;
const
PixelInType
*
in1
;
for
(
int
i
=
0
;
i
<
result
.
rows
;
i
++
)
{
for
(
int
j
=
0
;
j
<
result
.
cols
;
j
++
)
...
...
modules/cvv/test/test_location.cpp
View file @
11c90ea2
...
...
@@ -12,7 +12,7 @@ TEST(LocationTest, FileLineFunction)
auto
locationMacroResult
=
CVVISUAL_LOCATION
;
size_t
line
=
__LINE__
-
1
;
auto
file
=
__FILE__
;
auto
fun
=
CV
VISUAL_FUNCTION_NAME_MACRO
;
auto
fun
=
CV
_Func
;
EXPECT_EQ
(
locationMacroResult
.
isKnown
,
true
);
EXPECT_EQ
(
locationMacroResult
.
file
,
file
);
EXPECT_EQ
(
locationMacroResult
.
line
,
line
);
...
...
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