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
src
pcl
pcl/PointCloudData.cpp
Go to the documentation of this file.
1
#include "
depthai/pipeline/datatype/PointCloudData.hpp
"
2
3
pcl::PointCloud<pcl::PointXYZ>::Ptr
dai::PointCloudData::getPclData
()
const
{
4
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(
new
pcl::PointCloud<pcl::PointXYZ>);
5
6
auto
data
=
getData
();
7
cloud->width =
getWidth
();
8
cloud->height =
getHeight
();
9
cloud->is_dense =
isSparse
();
10
11
auto
* dataPtr = (Point3f*)
data
.data();
12
auto
size
=
data
.size() /
sizeof
(Point3f);
13
14
cloud->points.resize(
size
);
15
16
for
(
unsigned
int
i = 0; i <
size
; i++) {
17
cloud->points[i].x = dataPtr[i].x;
18
cloud->points[i].y = dataPtr[i].y;
19
cloud->points[i].z = dataPtr[i].z;
20
}
21
22
return
cloud;
23
}
dai::Buffer::getData
std::vector< std::uint8_t > & getData() const
Get non-owning reference to internal buffer.
Definition:
Buffer.cpp:13
dai::PointCloudData::getHeight
unsigned int getHeight() const
Definition:
pipeline/datatype/PointCloudData.cpp:33
DAI_SPAN_NAMESPACE_NAME::detail::data
constexpr auto data(C &c) -> decltype(c.data())
Definition:
span.hpp:177
dai::PointCloudData::getWidth
unsigned int getWidth() const
Definition:
pipeline/datatype/PointCloudData.cpp:30
DAI_SPAN_NAMESPACE_NAME::detail::size
constexpr auto size(const C &c) -> decltype(c.size())
Definition:
span.hpp:167
dai::PointCloudData::isSparse
bool isSparse() const
Definition:
pipeline/datatype/PointCloudData.cpp:54
dai::PointCloudData::getPclData
void getPclData() const
Definition:
PointCloudData.hpp:199
PointCloudData.hpp
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19