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
201b6b07
Commit
201b6b07
authored
Jul 15, 2016
by
Anna Petrovicheva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small interface change proposals
parent
551e17ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
2 deletions
+15
-2
blob.hpp
modules/dnn/include/opencv2/dnn/blob.hpp
+7
-0
blob.inl.hpp
modules/dnn/include/opencv2/dnn/blob.inl.hpp
+6
-0
dict.hpp
modules/dnn/include/opencv2/dnn/dict.hpp
+1
-1
dnn.inl.hpp
modules/dnn/include/opencv2/dnn/dnn.inl.hpp
+1
-1
No files found.
modules/dnn/include/opencv2/dnn/blob.hpp
View file @
201b6b07
...
...
@@ -209,6 +209,13 @@ namespace dnn
*/
Mat
getPlane
(
int
n
,
int
cn
);
/** @brief Returns slice of first dimension.
* @details The behaviour is similar to getPlane(), but returns all
* channels * rows * cols values, corresponding to the n-th value
* of the first dimension.
*/
Mat
getPlanes
(
int
n
);
/* Shape getters of 4-dimensional blobs. */
int
cols
()
const
;
//!< Returns size of the fourth axis blob.
int
rows
()
const
;
//!< Returns size of the thrid axis blob.
...
...
modules/dnn/include/opencv2/dnn/blob.inl.hpp
View file @
201b6b07
...
...
@@ -391,6 +391,12 @@ inline Mat Blob::getPlane(int n, int cn)
return
Mat
(
dims
()
-
2
,
sizes
()
+
2
,
type
(),
ptr
(
n
,
cn
));
}
inline
Mat
Blob
::
getPlanes
(
int
n
)
{
CV_Assert
(
dims
()
>
3
);
return
Mat
(
dims
()
-
1
,
sizes
()
+
1
,
type
(),
ptr
(
n
));
}
inline
int
Blob
::
cols
()
const
{
return
xsize
(
3
);
...
...
modules/dnn/include/opencv2/dnn/dict.hpp
View file @
201b6b07
...
...
@@ -111,7 +111,7 @@ class CV_EXPORTS Dict
public
:
//! Checks a presence of the @p key in the dictionary.
bool
has
(
const
String
&
key
);
bool
has
(
const
String
&
key
)
const
;
//! If the @p key in the dictionary then returns pointer to its value, else returns NULL.
DictValue
*
ptr
(
const
String
&
key
);
...
...
modules/dnn/include/opencv2/dnn/dnn.inl.hpp
View file @
201b6b07
...
...
@@ -287,7 +287,7 @@ inline std::ostream &operator<<(std::ostream &stream, const DictValue &dictv)
/////////////////////////////////////////////////////////////////
inline
bool
Dict
::
has
(
const
String
&
key
)
inline
bool
Dict
::
has
(
const
String
&
key
)
const
{
return
dict
.
count
(
key
)
!=
0
;
}
...
...
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