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
7f9f99d8
Commit
7f9f99d8
authored
Oct 11, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
parents
404a96ea
c6f783ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
ovis.hpp
modules/ovis/include/opencv2/ovis.hpp
+1
-0
ovis.cpp
modules/ovis/src/ovis.cpp
+7
-0
peilin.cpp
modules/ximgproc/samples/peilin.cpp
+4
-13
No files found.
modules/ovis/include/opencv2/ovis.hpp
View file @
7f9f99d8
...
...
@@ -31,6 +31,7 @@ enum SceneSettings
enum
MaterialProperty
{
MATERIAL_POINT_SIZE
,
MATERIAL_LINE_WIDTH
,
MATERIAL_OPACITY
,
MATERIAL_EMISSIVE
,
MATERIAL_TEXTURE0
,
...
...
modules/ovis/src/ovis.cpp
View file @
7f9f99d8
...
...
@@ -753,6 +753,13 @@ void setMaterialProperty(const String& name, int prop, const Scalar& val)
col
.
saturate
();
rpass
->
setEmissive
(
col
);
break
;
case
MATERIAL_LINE_WIDTH
:
#if OGRE_VERSION >= ((1 << 16) | (11 << 8) | 2)
rpass
->
setLineWidth
(
val
[
0
]);
#else
CV_Error
(
Error
::
StsError
,
"needs OGRE 1.11.2+ for this"
);
#endif
break
;
default
:
CV_Error
(
Error
::
StsBadArg
,
"invalid or non Scalar property"
);
break
;
...
...
modules/ximgproc/samples/peilin.cpp
View file @
7f9f99d8
...
...
@@ -4,13 +4,6 @@
#include <iostream>
static
void
help
()
{
std
::
cout
<<
"
\n
This program demonstrates Pei&Lin Normalization
\n
"
"Usage:
\n
"
"./peilin [image1_name -- default is ../data/peilin_plane.png] [image2_name -- default is ../data/peilin_shape.png]
\n
"
<<
std
::
endl
;
}
static
inline
cv
::
Mat
operator
&
(
const
cv
::
Mat
&
lhs
,
const
cv
::
Matx23d
&
rhs
)
{
cv
::
Mat
ret
;
...
...
@@ -27,12 +20,10 @@ static inline cv::Mat operator& ( const cv::Matx23d& lhs, const cv::Mat& rhs )
int
main
(
int
argc
,
char
**
argv
)
{
cv
::
CommandLineParser
parser
(
argc
,
argv
,
"{help h | | }{ @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_plane.png | }"
);
if
(
parser
.
has
(
"help"
))
{
help
();
return
0
;
}
cv
::
CommandLineParser
parser
(
argc
,
argv
,
"{ @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_shape.png | }"
);
parser
.
about
(
"
\n
This program demonstrates Pei&Lin Normalization
\n
"
);
parser
.
printMessage
();
std
::
string
filename1
=
parser
.
get
<
std
::
string
>
(
"@input1"
);
std
::
string
filename2
=
parser
.
get
<
std
::
string
>
(
"@input2"
);
...
...
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