Open3D (C++ API)  0.18.0+252c867
Console.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Eigen/Core>
11 #include <string>
12 #include <vector>
13 
14 namespace open3d {
15 namespace utility {
16 
17 std::string GetProgramOptionAsString(int argc,
18  char **argv,
19  const std::string &option,
20  const std::string &default_value = "");
21 
22 int GetProgramOptionAsInt(int argc,
23  char **argv,
24  const std::string &option,
25  const int default_value = 0);
26 
27 double GetProgramOptionAsDouble(int argc,
28  char **argv,
29  const std::string &option,
30  const double default_value = 0.0);
31 
32 Eigen::VectorXd GetProgramOptionAsEigenVectorXd(
33  int argc,
34  char **argv,
35  const std::string &option,
36  const Eigen::VectorXd default_value = Eigen::VectorXd::Zero(0));
37 
38 bool ProgramOptionExists(int argc, char **argv, const std::string &option);
39 
40 bool ProgramOptionExistsAny(int argc,
41  char **argv,
42  const std::vector<std::string> &options);
43 
44 } // namespace utility
45 } // namespace open3d
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle image_handle timestamp_usec white_balance image_handle k4a_device_configuration_t config device_handle char size_t serial_number_size bool int32_t int32_t int32_t int32_t default_value
Definition: K4aPlugin.cpp:653
Eigen::VectorXd GetProgramOptionAsEigenVectorXd(int argc, char **argv, const std::string &option, const Eigen::VectorXd default_value)
Definition: Console.cpp:71
bool ProgramOptionExistsAny(int argc, char **argv, const std::vector< std::string > &options)
Definition: Console.cpp:104
int GetProgramOptionAsInt(int argc, char **argv, const std::string &option, const int default_value)
Definition: Console.cpp:31
double GetProgramOptionAsDouble(int argc, char **argv, const std::string &option, const double default_value)
Definition: Console.cpp:52
std::string GetProgramOptionAsString(int argc, char **argv, const std::string &option, const std::string &default_value)
Definition: Console.cpp:19
bool ProgramOptionExists(int argc, char **argv, const std::string &option)
Definition: Console.cpp:100
Definition: PinholeCameraIntrinsic.cpp:16