YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PointCloudUtils.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_SIG_POINTCLOUDUTILS_H
7#define YARP_SIG_POINTCLOUDUTILS_H
8
9#include <yarp/sig/Image.h>
11#include <yarp/sig/PointCloud.h>
12
13namespace yarp::sig::utils {
14
18};
19
20struct PCL_ROI
21{
22 size_t min_x {0};
23 size_t max_x {0};
24 size_t min_y {0};
25 size_t max_y {0};
26};
27
37 const yarp::sig::IntrinsicParams& intrinsic);
38
53 const yarp::sig::IntrinsicParams& intrinsic,
55 size_t step_x=1,
56 size_t step_y=1,
57 const std::string& output_order = "+X+Y+Z");
58
75template<typename T1, typename T2>
77 const yarp::sig::ImageOf<T2>& color,
78 const yarp::sig::IntrinsicParams& intrinsic,
80 size_t step_x=1,
81 size_t step_y=1,
82 const std::string& output_order = "+X+Y+Z");
83} // namespace yarp::sig::utils
84
86
87#endif // YARP_SIG_POINTCLOUDUTILS_H
Typed image class.
Definition Image.h:605
The PointCloud class.
Definition PointCloud.h:21
yarp::sig::PointCloud< T1 > depthRgbToPC(const yarp::sig::ImageOf< yarp::sig::PixelFloat > &depth, const yarp::sig::ImageOf< T2 > &color, const yarp::sig::IntrinsicParams &intrinsic, const yarp::sig::utils::OrganizationType organizationType=yarp::sig::utils::OrganizationType::Organized, size_t step_x=1, size_t step_y=1, const std::string &output_order="+X+Y+Z")
depthRgbToPC, compute the colored PointCloud given depth image, color image and the intrinsic paramet...
yarp::sig::PointCloud< yarp::sig::DataXYZ > depthToPC(const yarp::sig::ImageOf< yarp::sig::PixelFloat > &depth, const yarp::sig::IntrinsicParams &intrinsic)
depthToPC, compute the PointCloud given depth image and the intrinsic parameters of the camera.
The IntrinsicParams struct to handle the intrinsic parameter of cameras(RGB and RGBD either).
#define YARP_sig_API
Definition api.h:18