Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
examples
utility
utility.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "opencv2/opencv.hpp"
4
5
cv::Mat
fromPlanarFp16
(
const
std::vector<float>&
data
,
int
w,
int
h,
float
mean = 0.0,
float
scale = 1.0);
6
cv::Mat
toMat
(
const
std::vector<uint8_t>&
data
,
int
w,
int
h ,
int
numPlanes,
int
bpp);
7
void
toPlanar
(cv::Mat& bgr, std::vector<std::uint8_t>&
data
);
8
cv::Mat
resizeKeepAspectRatio
(
const
cv::Mat &input,
const
cv::Size &dstSize,
const
cv::Scalar &bgcolor);
9
int
createDirectory
(std::string directory);
resizeKeepAspectRatio
cv::Mat resizeKeepAspectRatio(const cv::Mat &input, const cv::Size &dstSize, const cv::Scalar &bgcolor)
Definition:
utility.cpp:113
fromPlanarFp16
cv::Mat fromPlanarFp16(const std::vector< float > &data, int w, int h, float mean=0.0, float scale=1.0)
Definition:
utility.cpp:27
DAI_SPAN_NAMESPACE_NAME::detail::data
constexpr auto data(C &c) -> decltype(c.data())
Definition:
span.hpp:177
createDirectory
int createDirectory(std::string directory)
Definition:
utility.cpp:15
toMat
cv::Mat toMat(const std::vector< uint8_t > &data, int w, int h, int numPlanes, int bpp)
Definition:
utility.cpp:45
toPlanar
void toPlanar(cv::Mat &bgr, std::vector< std::uint8_t > &data)
Definition:
utility.cpp:100
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19