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
91e16573
Commit
91e16573
authored
Nov 02, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
parents
4cf4cb09
6703cddd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
4 deletions
+55
-4
binary_descriptor.cpp
modules/line_descriptor/src/binary_descriptor.cpp
+2
-1
ovis.hpp
modules/ovis/include/opencv2/ovis.hpp
+9
-0
ovis.cpp
modules/ovis/src/ovis.cpp
+44
-1
numeric.hpp
modules/sfm/include/opencv2/sfm/numeric.hpp
+0
-2
No files found.
modules/line_descriptor/src/binary_descriptor.cpp
View file @
91e16573
...
...
@@ -625,11 +625,12 @@ void BinaryDescriptor::computeImpl( const Mat& imageSrc, std::vector<KeyLine>& k
/* delete useless OctaveSingleLines */
for
(
size_t
i
=
0
;
i
<
sl
.
size
();
i
++
)
{
for
(
size_t
j
=
0
;
j
<
sl
[
i
].
size
();
j
++
)
for
(
size_t
j
=
0
;
j
<
sl
[
i
].
size
();
)
{
//if( (int) ( sl[i][j] ).octaveCount > params.numOfOctave_ )
if
(
(
int
)
(
sl
[
i
][
j
]
).
octaveCount
>
octaveIndex
)
(
sl
[
i
]
).
erase
(
(
sl
[
i
]
).
begin
()
+
j
);
else
j
++
;
}
}
...
...
modules/ovis/include/opencv2/ovis.hpp
View file @
91e16573
...
...
@@ -45,6 +45,7 @@ enum EntityProperty
{
ENTITY_MATERIAL
,
ENTITY_SCALE
,
ENTITY_AABB_WORLD
};
/**
...
...
@@ -106,6 +107,14 @@ public:
/// @overload
CV_WRAP
virtual
void
setEntityProperty
(
const
String
&
name
,
int
prop
,
const
String
&
value
)
=
0
;
/**
* get the property of an entity
* @param name entity name
* @param prop @ref EntityProperty
* @param value the value
*/
CV_WRAP
virtual
void
getEntityProperty
(
const
String
&
name
,
int
prop
,
OutputArray
value
)
=
0
;
/**
* convenience method to visualize a camera position
*
...
...
modules/ovis/src/ovis.cpp
View file @
91e16573
...
...
@@ -43,8 +43,14 @@ void _createTexture(const String& name, Mat image)
case
CV_8UC1
:
format
=
PF_BYTE_L
;
break
;
case
CV_16UC1
:
format
=
PF_L16
;
break
;
case
CV_32FC1
:
format
=
PF_FLOAT32_R
;
break
;
default
:
CV_Error
(
Error
::
StsBadArg
,
"currently
only CV_8UC1, CV_8UC3, CV_8UC4 textures are supported
"
);
CV_Error
(
Error
::
StsBadArg
,
"currently
supported formats are only CV_8UC1, CV_8UC3, CV_8UC4, CV_16UC1, CV_32FC1
"
);
break
;
}
...
...
@@ -388,18 +394,26 @@ public:
int
dst_type
;
switch
(
src_type
)
{
case
PF_R8
:
case
PF_L8
:
dst_type
=
CV_8U
;
break
;
case
PF_BYTE_RGB
:
dst_type
=
CV_8UC3
;
break
;
case
PF_BYTE_RGBA
:
dst_type
=
CV_8UC4
;
break
;
case
PF_FLOAT32_R
:
dst_type
=
CV_32F
;
break
;
case
PF_FLOAT32_RGB
:
dst_type
=
CV_32FC3
;
break
;
case
PF_FLOAT32_RGBA
:
dst_type
=
CV_32FC4
;
break
;
case
PF_L16
:
case
PF_DEPTH16
:
dst_type
=
CV_16U
;
break
;
...
...
@@ -549,6 +563,35 @@ public:
node
.
setScale
(
value
[
0
],
value
[
1
],
value
[
2
]);
}
void
getEntityProperty
(
const
String
&
name
,
int
prop
,
OutputArray
value
)
{
SceneNode
&
node
=
_getSceneNode
(
sceneMgr
,
name
);
switch
(
prop
)
{
case
ENTITY_SCALE
:
{
Vector3
s
=
node
.
getScale
();
Mat_
<
Real
>
(
1
,
3
,
s
.
ptr
()).
copyTo
(
value
);
return
;
}
case
ENTITY_AABB_WORLD
:
{
Entity
*
ent
=
dynamic_cast
<
Entity
*>
(
node
.
getAttachedObject
(
name
));
CV_Assert
(
ent
&&
"invalid entity"
);
AxisAlignedBox
aabb
=
ent
->
getWorldBoundingBox
(
true
);
Vector3
mn
=
aabb
.
getMinimum
();
Vector3
mx
=
aabb
.
getMaximum
();
Mat_
<
Real
>
ret
(
2
,
3
);
Mat_
<
Real
>
(
1
,
3
,
mn
.
ptr
()).
copyTo
(
ret
.
row
(
0
));
Mat_
<
Real
>
(
1
,
3
,
mx
.
ptr
()).
copyTo
(
ret
.
row
(
1
));
ret
.
copyTo
(
value
);
return
;
}
default
:
CV_Error
(
Error
::
StsBadArg
,
"unsupported property"
);
}
}
void
_createBackground
()
{
String
name
=
"_"
+
sceneMgr
->
getName
()
+
"_DefaultBackground"
;
...
...
modules/sfm/include/opencv2/sfm/numeric.hpp
View file @
91e16573
...
...
@@ -38,8 +38,6 @@
#include <opencv2/core.hpp>
#include <Eigen/Core>
namespace
cv
{
namespace
sfm
...
...
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