![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Classes | |
| class | CharVector |
| class | DepthNoiseSimulator |
| class | NumpyArray |
| struct | PCDHeader |
| struct | PCLPointField |
| struct | ReadAttributePtr |
| class | RealSenseSensor |
| RealSense camera discovery, configuration, streaming and recording. More... | |
| class | RealSenseSensorConfig |
| struct | RealSenseValidConfigs |
| class | RGBDSensor |
| Interface class for control of RGBD cameras. More... | |
| class | RGBDVideoMetadata |
| RGBD video metadata. More... | |
| class | RGBDVideoReader |
| class | RSBagReader |
| struct | WriteAttributePtr |
Enumerations | |
| enum | PCDDataType { PCDDataType::ASCII = 0, PCDDataType::BINARY = 1, PCDDataType::BINARY_COMPRESSED = 2 } |
| enum | SensorType { SensorType::AZURE_KINECT = 0, SensorType::REAL_SENSE = 1 } |
Functions | |
| bool | ReadTriangleMeshUsingASSIMP (const std::string &filename, geometry::TriangleMesh &mesh, const cloudViewer::io::ReadTriangleMeshOptions ¶ms) |
| static void | SetTextureMaterialProperty (aiMaterial *mat, aiScene *scene, int texture_idx, aiTextureType tt, t::geometry::Image &img) |
| bool | WriteTriangleMeshUsingASSIMP (const std::string &filename, const geometry::TriangleMesh &mesh, const bool write_ascii, const bool compressed, const bool write_vertex_normals, const bool write_vertex_colors, const bool write_triangle_uvs, const bool print_progress) |
| bool | ReadImageFromJPG (const std::string &filename, geometry::Image &image) |
| bool | WriteImageToJPG (const std::string &filename, const geometry::Image &image, int quality) |
| static core::Dtype | GetDtypeFromPCDHeaderField (char type, int size) |
| static bool | InitializeHeader (PCDHeader &header) |
| static bool | ReadPCDHeader (FILE *file, PCDHeader &header) |
| static void | ReadASCIIPCDColorsFromField (ReadAttributePtr &attr, const PCLPointField &field, const char *data_ptr, const int index) |
| template<typename scalar_t > | |
| static void | UnpackASCIIPCDElement (scalar_t &data, const char *data_ptr)=delete |
| template<> | |
| void | UnpackASCIIPCDElement< float > (float &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< double > (double &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::int8_t > (std::int8_t &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::int16_t > (std::int16_t &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::int32_t > (std::int32_t &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::int64_t > (std::int64_t &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::uint8_t > (std::uint8_t &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::uint16_t > (std::uint16_t &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::uint32_t > (std::uint32_t &data, const char *data_ptr) |
| template<> | |
| void | UnpackASCIIPCDElement< std::uint64_t > (std::uint64_t &data, const char *data_ptr) |
| static void | ReadASCIIPCDElementsFromField (ReadAttributePtr &attr, const PCLPointField &field, const char *data_ptr, const int index) |
| static void | ReadBinaryPCDColorsFromField (ReadAttributePtr &attr, const PCLPointField &field, const void *data_ptr, const int index) |
| static void | ReadBinaryPCDElementsFromField (ReadAttributePtr &attr, const PCLPointField &field, const void *data_ptr, const int index) |
| static bool | ReadPCDData (FILE *file, PCDHeader &header, t::geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| static void | SetPCDHeaderFieldTypeAndSizeFromDtype (const core::Dtype &dtype, PCLPointField &field) |
| static bool | GenerateHeader (const t::geometry::PointCloud &pointcloud, const bool write_ascii, const bool compressed, PCDHeader &header) |
| static bool | WritePCDHeader (FILE *file, const PCDHeader &header) |
| template<typename scalar_t > | |
| static void | ColorToUint8 (const scalar_t *input_color, std::uint8_t *output_color) |
| template<> | |
| void | ColorToUint8< float > (const float *input_color, std::uint8_t *output_color) |
| template<> | |
| void | ColorToUint8< double > (const double *input_color, std::uint8_t *output_color) |
| template<> | |
| void | ColorToUint8< std::uint8_t > (const std::uint8_t *input_color, std::uint8_t *output_color) |
| template<> | |
| void | ColorToUint8< std::uint16_t > (const std::uint16_t *input_color, std::uint8_t *output_color) |
| template<> | |
| void | ColorToUint8< std::uint32_t > (const std::uint32_t *input_color, std::uint8_t *output_color) |
| static core::Tensor | PackColorsToFloat (const core::Tensor &colors_contiguous) |
| template<typename scalar_t > | |
| static int | WriteElementDataToFileASCII (const scalar_t &data, FILE *file)=delete |
| template<> | |
| int | WriteElementDataToFileASCII< float > (const float &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< double > (const double &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::int8_t > (const std::int8_t &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::int16_t > (const std::int16_t &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::int32_t > (const std::int32_t &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::int64_t > (const std::int64_t &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::uint8_t > (const std::uint8_t &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::uint16_t > (const std::uint16_t &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::uint32_t > (const std::uint32_t &data, FILE *file) |
| template<> | |
| int | WriteElementDataToFileASCII< std::uint64_t > (const std::uint64_t &data, FILE *file) |
| static bool | WritePCDData (FILE *file, const PCDHeader &header, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromPCD (const std::string &filename, t::geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToPCD (const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromPLY (const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToPLY (const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms) |
| static void | SetPNGImageFromImage (const geometry::Image &image, int quality, png_image &pngimage) |
| bool | ReadImageFromPNG (const std::string &filename, geometry::Image &image) |
| bool | WriteImageToPNG (const std::string &filename, const geometry::Image &image, int quality) |
| bool | WriteImageToPNGInMemory (std::vector< uint8_t > &buffer, const t::geometry::Image &image, int quality) |
| bool | ReadPointCloudFromPTS (const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| core::Tensor | ConvertColorTensorToUint8 (const core::Tensor &color_in) |
| bool | WritePointCloudToPTS (const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromSPLAT (const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToSPLAT (const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms) |
| cloudViewer::io::FileGeometry | ReadFileGeometryTypeTXT (const std::string &path) |
| bool | ReadPointCloudFromTXT (const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToTXT (const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms) |
| cloudViewer::io::FileGeometry | ReadFileGeometryTypeXYZI (const std::string &path) |
| bool | ReadPointCloudFromXYZI (const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToXYZI (const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms) |
| void | WriteHashMap (const std::string &file_name, const core::HashMap &hashmap) |
| core::HashMap | ReadHashMap (const std::string &file_name) |
| std::shared_ptr< geometry::Image > | CreateImageFromFile (const std::string &filename) |
| bool | ReadImage (const std::string &filename, geometry::Image &image) |
| bool | WriteImage (const std::string &filename, const geometry::Image &image, int quality) |
| static char | BigEndianChar () |
| static char | DtypeToChar (const core::Dtype &dtype) |
| static CharVector | CreateNumpyHeader (const core::SizeVector &shape, const core::Dtype &dtype) |
| static std::tuple< core::SizeVector, char, int64_t, bool > | ParsePropertyDict (const std::string &header) |
| static size_t | ParseNpyPreamble (const char *preamble) |
| static std::tuple< core::SizeVector, char, int64_t, bool > | ParseNpyHeaderFromFile (FILE *fp) |
| static std::tuple< core::SizeVector, char, int64_t, bool > | ParseNpyHeaderFromBuffer (const char *buffer) |
| static std::tuple< size_t, size_t, size_t > | ParseZipFooter (FILE *fp) |
| static void | WriteNpzOneTensor (const std::string &file_name, const std::string &tensor_name, const core::Tensor &tensor, bool append) |
| static void | WriteNpzEmpty (const std::string &file_name) |
| static NumpyArray | CreateNumpyArrayFromFile (FILE *fp) |
| static NumpyArray | CreateNumpyArrayFromCompressedFile (FILE *fp, uint32_t num_compressed_bytes, uint32_t num_uncompressed_bytes) |
| core::Tensor | ReadNpy (const std::string &file_name) |
| void | WriteNpy (const std::string &file_name, const core::Tensor &tensor) |
| std::unordered_map< std::string, core::Tensor > | ReadNpz (const std::string &file_name) |
| void | WriteNpz (const std::string &file_name, const std::unordered_map< std::string, core::Tensor > &tensor_map) |
| std::shared_ptr< geometry::PointCloud > | CreatePointCloudFromFile (const std::string &filename, const std::string &format, bool print_progress) |
| bool | ReadPointCloud (const std::string &filename, geometry::PointCloud &pointcloud, const cloudViewer::io::ReadPointCloudOption ¶ms) |
| bool | ReadPointCloud (const std::string &filename, geometry::PointCloud &pointcloud, const std::string &file_format, bool remove_nan_points, bool remove_infinite_points, bool print_progress) |
| bool | WritePointCloud (const std::string &filename, const geometry::PointCloud &pointcloud, const cloudViewer::io::WritePointCloudOption ¶ms) |
| bool | WritePointCloud (const std::string &filename, const geometry::PointCloud &pointcloud, bool write_ascii, bool compressed, bool print_progress) |
| bool | ReadPointCloudFromNPZ (const std::string &filename, geometry::PointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToNPZ (const std::string &filename, const geometry::PointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| STRINGIFY_ENUM (rs2_stream, { {RS2_STREAM_ANY, "RS2_STREAM_ANY"}, {RS2_STREAM_DEPTH, "RS2_STREAM_DEPTH"}, {RS2_STREAM_COLOR, "RS2_STREAM_COLOR"}, {RS2_STREAM_INFRARED, "RS2_STREAM_INFRARED"}, {RS2_STREAM_FISHEYE, "RS2_STREAM_FISHEYE"}, {RS2_STREAM_GYRO, "RS2_STREAM_GYRO"}, {RS2_STREAM_ACCEL, "RS2_STREAM_ACCEL"}, {RS2_STREAM_GPIO, "RS2_STREAM_GPIO"}, {RS2_STREAM_POSE, "RS2_STREAM_POSE"}, {RS2_STREAM_CONFIDENCE, "RS2_STREAM_CONFIDENCE"} }) | |
| RS2 stream types. More... | |
| STRINGIFY_ENUM (rs2_format, { {RS2_FORMAT_ANY, "RS2_FORMAT_ANY"}, {RS2_FORMAT_Z16, "RS2_FORMAT_Z16"}, {RS2_FORMAT_DISPARITY16, "RS2_FORMAT_DISPARITY16"}, {RS2_FORMAT_XYZ32F, "RS2_FORMAT_XYZ32F"}, {RS2_FORMAT_YUYV, "RS2_FORMAT_YUYV"}, {RS2_FORMAT_RGB8, "RS2_FORMAT_RGB8"}, {RS2_FORMAT_BGR8, "RS2_FORMAT_BGR8"}, {RS2_FORMAT_RGBA8, "RS2_FORMAT_RGBA8"}, {RS2_FORMAT_BGRA8, "RS2_FORMAT_BGRA8"}, {RS2_FORMAT_Y8, "RS2_FORMAT_Y8"}, {RS2_FORMAT_Y16, "RS2_FORMAT_Y16"}, {RS2_FORMAT_RAW10, "RS2_FORMAT_RAW10"}, {RS2_FORMAT_RAW16, "RS2_FORMAT_RAW16"}, {RS2_FORMAT_RAW8, "RS2_FORMAT_RAW8"}, {RS2_FORMAT_UYVY, "RS2_FORMAT_UYVY"}, {RS2_FORMAT_MOTION_RAW, "RS2_FORMAT_MOTION_RAW"}, {RS2_FORMAT_MOTION_XYZ32F, "RS2_FORMAT_MOTION_XYZ32F"}, {RS2_FORMAT_GPIO_RAW, "RS2_FORMAT_GPIO_RAW"}, {RS2_FORMAT_6DOF, "RS2_FORMAT_6DOF"}, {RS2_FORMAT_DISPARITY32, "RS2_FORMAT_DISPARITY32"}, {RS2_FORMAT_Y10BPACK, "RS2_FORMAT_Y10BPACK"}, {RS2_FORMAT_DISTANCE, "RS2_FORMAT_DISTANCE"}, {RS2_FORMAT_MJPEG, "RS2_FORMAT_MJPEG"}, {RS2_FORMAT_Y8I, "RS2_FORMAT_Y8I"}, {RS2_FORMAT_Y12I, "RS2_FORMAT_Y12I"}, {RS2_FORMAT_INZI, "RS2_FORMAT_INZI"}, {RS2_FORMAT_INVI, "RS2_FORMAT_INVI"}, {RS2_FORMAT_W10, "RS2_FORMAT_W10"}, {RS2_FORMAT_Z16H, "RS2_FORMAT_Z16H"} }) | |
| RS2 pixel formats. More... | |
| STRINGIFY_ENUM (rs2_l500_visual_preset, { {RS2_L500_VISUAL_PRESET_DEFAULT, "RS2_L500_VISUAL_PRESET_DEFAULT"}, {RS2_L500_VISUAL_PRESET_CUSTOM, "RS2_L500_VISUAL_PRESET_CUSTOM"}, {RS2_L500_VISUAL_PRESET_NO_AMBIENT, "RS2_L500_VISUAL_PRESET_NO_AMBIENT"}, {RS2_L500_VISUAL_PRESET_LOW_AMBIENT, "RS2_L500_VISUAL_PRESET_LOW_AMBIENT"}, {RS2_L500_VISUAL_PRESET_MAX_RANGE, "RS2_L500_VISUAL_PRESET_MAX_RANGE"}, {RS2_L500_VISUAL_PRESET_SHORT_RANGE, "RS2_L500_VISUAL_PRESET_SHORT_RANGE"} }) | |
| RS2 visual presets for L500 devices. More... | |
| STRINGIFY_ENUM (rs2_rs400_visual_preset, { {RS2_RS400_VISUAL_PRESET_DEFAULT, "RS2_RS400_VISUAL_PRESET_DEFAULT"}, {RS2_RS400_VISUAL_PRESET_CUSTOM, "RS2_RS400_VISUAL_PRESET_CUSTOM"}, {RS2_RS400_VISUAL_PRESET_HAND, "RS2_RS400_VISUAL_PRESET_HAND"}, {RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY, "RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY"}, {RS2_RS400_VISUAL_PRESET_HIGH_DENSITY, "RS2_RS400_VISUAL_PRESET_HIGH_DENSITY"}, {RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY, "RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY"}, {RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN, "RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN"} }) | |
| RS2 visual presets for RS400 devices. More... | |
| STRINGIFY_ENUM (rs2_sr300_visual_preset, { {RS2_SR300_VISUAL_PRESET_DEFAULT, "RS2_SR300_VISUAL_PRESET_DEFAULT"}, {RS2_SR300_VISUAL_PRESET_SHORT_RANGE, "RS2_SR300_VISUAL_PRESET_SHORT_RANGE"}, {RS2_SR300_VISUAL_PRESET_LONG_RANGE, "RS2_SR300_VISUAL_PRESET_LONG_RANGE"}, {RS2_SR300_VISUAL_PRESET_BACKGROUND_SEGMENTATION, "RS2_SR300_VISUAL_PRESET_BACKGROUND_SEGMENTATION"}, {RS2_SR300_VISUAL_PRESET_GESTURE_RECOGNITION, "RS2_SR300_VISUAL_PRESET_GESTURE_RECOGNITION"}, {RS2_SR300_VISUAL_PRESET_OBJECT_SCANNING, "RS2_SR300_VISUAL_PRESET_OBJECT_SCANNING"}, {RS2_SR300_VISUAL_PRESET_FACE_ANALYTICS, "RS2_SR300_VISUAL_PRESET_FACE_ANALYTICS"}, {RS2_SR300_VISUAL_PRESET_FACE_LOGIN, "RS2_SR300_VISUAL_PRESET_FACE_LOGIN"}, {RS2_SR300_VISUAL_PRESET_GR_CURSOR, "RS2_SR300_VISUAL_PRESET_GR_CURSOR"}, {RS2_SR300_VISUAL_PRESET_MID_RANGE, "RS2_SR300_VISUAL_PRESET_MID_RANGE"}, {RS2_SR300_VISUAL_PRESET_IR_ONLY, "RS2_SR300_VISUAL_PRESET_IR_ONLY"} }) | |
| std::shared_ptr< geometry::TriangleMesh > | CreateMeshFromFile (const std::string &filename, bool print_progress) |
| bool | ReadTriangleMesh (const std::string &filename, geometry::TriangleMesh &mesh, cloudViewer::io::ReadTriangleMeshOptions params) |
| bool | WriteTriangleMesh (const std::string &filename, const geometry::TriangleMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress) |
| bool | ReadTriangleMeshFromNPZ (const std::string &filename, geometry::TriangleMesh &mesh, const cloudViewer::io::ReadTriangleMeshOptions ¶ms) |
| bool | WriteTriangleMeshToNPZ (const std::string &filename, const geometry::TriangleMesh &mesh, const bool write_ascii, const bool compressed, const bool write_vertex_normals, const bool write_vertex_colors, const bool write_triangle_uvs, const bool print_progress) |
Variables | |
| const unsigned int | kPostProcessFlags_compulsory |
| const unsigned int | kPostProcessFlags_fast |
| constexpr int | kCloudViewerImageIODefaultQuality = -1 |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, geometry::PointCloud &, const cloudViewer::io::ReadPointCloudOption &)> > | file_extension_to_pointcloud_read_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, const geometry::PointCloud &, const cloudViewer::io::WritePointCloudOption &)> > | file_extension_to_pointcloud_write_function |
| static std::unordered_map< std::string, std::string > | standard_config |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, geometry::TriangleMesh &, const cloudViewer::io::ReadTriangleMeshOptions &)> > | file_extension_to_trianglemesh_read_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, const geometry::TriangleMesh &, const bool, const bool, const bool, const bool, const bool, const bool)> > | file_extension_to_trianglemesh_write_function |
|
strong |
|
strong |
|
static |
References x.
Referenced by CreateNumpyHeader().
|
static |
References LogError.
| void cloudViewer::t::io::ColorToUint8< double > | ( | const double * | input_color, |
| std::uint8_t * | output_color | ||
| ) |
| void cloudViewer::t::io::ColorToUint8< float > | ( | const float * | input_color, |
| std::uint8_t * | output_color | ||
| ) |
| void cloudViewer::t::io::ColorToUint8< std::uint16_t > | ( | const std::uint16_t * | input_color, |
| std::uint8_t * | output_color | ||
| ) |
| void cloudViewer::t::io::ColorToUint8< std::uint32_t > | ( | const std::uint32_t * | input_color, |
| std::uint8_t * | output_color | ||
| ) |
| void cloudViewer::t::io::ColorToUint8< std::uint8_t > | ( | const std::uint8_t * | input_color, |
| std::uint8_t * | output_color | ||
| ) |
| core::Tensor cloudViewer::t::io::ConvertColorTensorToUint8 | ( | const core::Tensor & | color_in | ) |
References cloudViewer::core::Bool, cloudViewer::core::Tensor::Clip(), cloudViewer::core::Float32, cloudViewer::core::Float64, cloudViewer::core::Tensor::GetDtype(), cloudViewer::core::Tensor::Mul(), cloudViewer::core::Tensor::Round(), cloudViewer::core::Tensor::To(), and cloudViewer::core::UInt8.
Referenced by WritePointCloudToPTS().
| std::shared_ptr< geometry::Image > cloudViewer::t::io::CreateImageFromFile | ( | const std::string & | filename | ) |
Factory function to create an image from a file (ImageFactory.cpp) Return an empty image if fail to read the file.
References filename, image, and ReadImage().
Referenced by cloudViewer::t::pipelines::odometry::ComputeOdometryResultPointToPlane(), and cloudViewer::t::pipelines::odometry::RGBDOdometryMultiScale().
| std::shared_ptr< geometry::TriangleMesh > cloudViewer::t::io::CreateMeshFromFile | ( | const std::string & | filename, |
| bool | print_progress = false |
||
| ) |
Factory function to create a mesh from a file (TriangleMeshFactory.cpp) Return an empty mesh if fail to read the file.
|
static |
|
static |
|
static |
| std::shared_ptr< geometry::PointCloud > cloudViewer::t::io::CreatePointCloudFromFile | ( | const std::string & | filename, |
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
Factory function to create a pointcloud from a file Return an empty pointcloud if fail to read the file.
Referenced by cloudViewer::t::pipelines::slac::PreprocessPointClouds().
|
static |
References cloudViewer::core::Bool, cloudViewer::core::Float32, cloudViewer::core::Float64, cloudViewer::core::Int16, cloudViewer::core::Int32, cloudViewer::core::Int64, cloudViewer::core::Int8, LogError, cloudViewer::core::Dtype::ToString(), cloudViewer::core::UInt16, cloudViewer::core::UInt32, cloudViewer::core::UInt64, and cloudViewer::core::UInt8.
Referenced by CreateNumpyHeader().
|
static |
References ASCII, BINARY, BINARY_COMPRESSED, compressed, cloudViewer::t::io::PCLPointField::count, cloudViewer::t::io::PCDHeader::datatype, cloudViewer::t::io::PCDHeader::elementnum, cloudViewer::t::io::PCDHeader::fields, cloudViewer::core::Tensor::GetDtype(), cloudViewer::core::Tensor::GetLength(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), cloudViewer::t::geometry::PointCloud::HasPointColors(), cloudViewer::t::geometry::PointCloud::HasPointNormals(), cloudViewer::t::geometry::PointCloud::HasPointPositions(), cloudViewer::t::io::PCDHeader::height, LogWarning, cloudViewer::t::io::PCLPointField::name, cloudViewer::t::io::PCDHeader::points, cloudViewer::t::io::PCDHeader::pointsize, SetPCDHeaderFieldTypeAndSizeFromDtype(), cloudViewer::t::io::PCLPointField::size, cloudViewer::core::SizeVector::ToString(), cloudViewer::t::io::PCLPointField::type, cloudViewer::t::io::PCDHeader::version, cloudViewer::t::io::PCDHeader::width, and write_ascii.
Referenced by cloudViewer::io::WritePointCloudToPCD(), and WritePointCloudToPCD().
|
static |
References cloudViewer::core::Dtype::Float32, cloudViewer::core::Dtype::Float64, cloudViewer::core::Dtype::Int16, cloudViewer::core::Dtype::Int32, cloudViewer::core::Dtype::Int64, cloudViewer::core::Dtype::Int8, LogError, size, type, cloudViewer::core::Dtype::UInt16, cloudViewer::core::Dtype::UInt32, cloudViewer::core::Dtype::UInt64, and cloudViewer::core::Dtype::UInt8.
Referenced by InitializeHeader(), ReadASCIIPCDElementsFromField(), and ReadBinaryPCDElementsFromField().
|
static |
|
static |
|
static |
References ParseNpyPreamble(), and ParsePropertyDict().
Referenced by CreateNumpyArrayFromCompressedFile().
|
static |
References cloudViewer::t::io::CharVector::Data(), LogError, ParseNpyPreamble(), and ParsePropertyDict().
Referenced by CreateNumpyArrayFromFile().
|
static |
References LogError.
Referenced by ParseNpyHeaderFromBuffer(), and ParseNpyHeaderFromFile().
|
static |
References LogError, and type.
Referenced by ParseNpyHeaderFromBuffer(), and ParseNpyHeaderFromFile().
|
static |
References cloudViewer::t::io::CharVector::Data(), and LogError.
Referenced by WriteNpzOneTensor().
|
static |
|
static |
References DISPATCH_DTYPE_TO_TEMPLATE, GetDtypeFromPCDHeaderField(), cloudViewer::t::io::PCLPointField::size, and cloudViewer::t::io::PCLPointField::type.
Referenced by ReadPCDData().
|
static |
References data, cloudViewer::t::io::ReadAttributePtr::data_ptr_, cloudViewer::t::io::ReadAttributePtr::row_length_, and cloudViewer::t::io::PCLPointField::size.
Referenced by ReadPCDData().
|
static |
References DISPATCH_DTYPE_TO_TEMPLATE, GetDtypeFromPCDHeaderField(), cloudViewer::t::io::PCLPointField::size, and cloudViewer::t::io::PCLPointField::type.
Referenced by ReadPCDData().
| cloudViewer::io::FileGeometry cloudViewer::t::io::ReadFileGeometryTypeTXT | ( | const std::string & | path | ) |
References cloudViewer::io::CONTAINS_POINTS.
| cloudViewer::io::FileGeometry cloudViewer::t::io::ReadFileGeometryTypeXYZI | ( | const std::string & | path | ) |
References cloudViewer::io::CONTAINS_POINTS.
| core::HashMap cloudViewer::t::io::ReadHashMap | ( | const std::string & | filename | ) |
Read a hash map's keys and values from a npz file at 'key' and 'value'. Return a hash map on CPU.
| filename | The npz file name to read from. |
References format, cloudViewer::core::Tensor::GetDtype(), cloudViewer::core::Tensor::GetLength(), cloudViewer::core::Tensor::GetShape(), and ReadNpz().
Referenced by cloudViewer::core::HashSet::Load(), and cloudViewer::core::HashMap::Load().
| bool cloudViewer::t::io::ReadImage | ( | const std::string & | filename, |
| geometry::Image & | image | ||
| ) |
The general entrance for reading an Image from a file The function calls read functions based on the extension name of filename.
| filename | Full path to image. Supported file formats are png, jpg/jpeg. |
| image | An object of type cloudViewer::t::geometry::Image. |
References filename, image, and LogWarning.
Referenced by CreateImageFromFile().
| bool cloudViewer::t::io::ReadImageFromJPG | ( | const std::string & | filename, |
| geometry::Image & | image | ||
| ) |
| bool cloudViewer::t::io::ReadImageFromPNG | ( | const std::string & | filename, |
| geometry::Image & | image | ||
| ) |
References filename, image, LogWarning, NULL, cloudViewer::core::UInt16, and cloudViewer::core::UInt8.
| core::Tensor cloudViewer::t::io::ReadNpy | ( | const std::string & | file_name | ) |
Read Numpy .npy file to a tensor.
| file_name | The file name to read from. |
References CreateNumpyArrayFromFile(), cloudViewer::utility::filesystem::CFile::GetError(), cloudViewer::utility::filesystem::CFile::GetFILE(), LogError, cloudViewer::utility::filesystem::CFile::Open(), and cloudViewer::t::io::NumpyArray::ToTensor().
Referenced by cloudViewer::core::Tensor::Load().
| std::unordered_map< std::string, core::Tensor > cloudViewer::t::io::ReadNpz | ( | const std::string & | file_name | ) |
Read Numpy .npz file to an unordered_map from string to tensor.
| file_name | The file name to read from. |
References cloudViewer::t::io::CharVector::Begin(), CreateNumpyArrayFromCompressedFile(), CreateNumpyArrayFromFile(), cloudViewer::t::io::CharVector::Data(), cloudViewer::t::io::CharVector::End(), cloudViewer::utility::filesystem::CFile::GetError(), cloudViewer::utility::filesystem::CFile::GetFILE(), LogError, cloudViewer::utility::filesystem::CFile::Open(), and cloudViewer::t::io::NumpyArray::ToTensor().
Referenced by cloudViewer::t::geometry::VoxelBlockGrid::Load(), ReadHashMap(), ReadPointCloudFromNPZ(), and ReadTriangleMeshFromNPZ().
|
static |
References ASCII, cloudViewer::t::io::PCDHeader::attr_dtype, BINARY, BINARY_COMPRESSED, cloudViewer::t::geometry::PointCloud::Clear(), colors, cloudViewer::t::io::PCDHeader::datatype, DEFAULT_IO_BUFFER_SIZE, cloudViewer::t::io::PCDHeader::elementnum, cloudViewer::core::Tensor::Empty(), cloudViewer::t::io::PCDHeader::fields, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::core::Tensor::GetDataPtr(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointColors(), cloudViewer::t::geometry::PointCloud::GetPointNormals(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), cloudViewer::t::io::PCDHeader::has_attr, LogDebug, LogWarning, normal_x, normal_z, cloudViewer::t::io::PCDHeader::points, cloudViewer::t::io::PCDHeader::pointsize, ReadASCIIPCDColorsFromField(), ReadASCIIPCDElementsFromField(), ReadBinaryPCDColorsFromField(), ReadBinaryPCDElementsFromField(), cloudViewer::t::geometry::PointCloud::SetPointAttr(), cloudViewer::t::geometry::PointCloud::SetPointColors(), cloudViewer::t::geometry::PointCloud::SetPointNormals(), cloudViewer::t::geometry::PointCloud::SetPointPositions(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::SplitString(), cloudViewer::core::UInt8, cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::ReadPointCloudOption::update_progress.
Referenced by cloudViewer::io::ReadPointCloudFromPCD(), and ReadPointCloudFromPCD().
|
static |
References ASCII, BINARY, BINARY_COMPRESSED, count_offset, cloudViewer::t::io::PCDHeader::datatype, DEFAULT_IO_BUFFER_SIZE, cloudViewer::t::io::PCDHeader::elementnum, cloudViewer::t::io::PCDHeader::fields, cloudViewer::t::io::PCDHeader::height, InitializeHeader(), LogWarning, offset, cloudViewer::t::io::PCDHeader::points, cloudViewer::t::io::PCDHeader::pointsize, cloudViewer::utility::SplitString(), cloudViewer::t::io::PCDHeader::version, cloudViewer::t::io::PCDHeader::viewpoint, and cloudViewer::t::io::PCDHeader::width.
Referenced by cloudViewer::io::ReadPointCloudFromPCD(), and ReadPointCloudFromPCD().
| bool cloudViewer::t::io::ReadPointCloud | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params = {} |
||
| ) |
The general entrance for reading a PointCloud from a file The function calls read functions based on the extension name of filename. See ReadPointCloudOption for additional options you can pass.
References file_extension_to_pointcloud_read_function, filename, cloudViewer::io::ReadPointCloudOption::format, format, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), LogDebug, LogError, LogWarning, cloudViewer::io::ReadPointCloudOption::remove_infinite_points, and cloudViewer::io::ReadPointCloudOption::remove_nan_points.
Referenced by cloudViewer::t::geometry::ComputeBoundaryPoints(), cloudViewer::t::pipelines::registration::ComputeFPFHFeature(), cloudViewer::t::geometry::CropByAxisAlignedBox(), cloudViewer::t::geometry::CropByOrientedBox(), cloudViewer::t::geometry::EstimateNormals(), cloudViewer::t::geometry::IOReadTensorPointCloud(), cloudViewer::t::geometry::IOWriteTensorPointCloud(), cloudViewer::t::pipelines::registration::LoadTensorDopplerPointCloudFromFile(), cloudViewer::t::pipelines::registration::LoadTensorPointCloudFromFile(), cloudViewer::t::geometry::RemoveRadiusOutliers(), cloudViewer::t::geometry::RemoveStatisticalOutliers(), cloudViewer::t::geometry::SelectByIndex(), cloudViewer::t::geometry::Transform(), cloudViewer::t::geometry::UniformDownSample(), and cloudViewer::t::geometry::VoxelDownSample().
| bool cloudViewer::t::io::ReadPointCloud | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const std::string & | file_format, | ||
| bool | remove_nan_points, | ||
| bool | remove_infinite_points, | ||
| bool | print_progress | ||
| ) |
| bool cloudViewer::t::io::ReadPointCloudFromNPZ | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
| bool cloudViewer::t::io::ReadPointCloudFromPCD | ( | const std::string & | filename, |
| t::geometry::PointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
References cloudViewer::t::io::PCDHeader::datatype, cloudViewer::t::io::PCDHeader::fields, filename, cloudViewer::utility::filesystem::FOpen(), cloudViewer::t::io::PCDHeader::has_attr, LogDebug, LogWarning, NULL, cloudViewer::t::io::PCDHeader::points, cloudViewer::t::io::PCDHeader::pointsize, ReadPCDData(), and ReadPCDHeader().
| bool cloudViewer::t::io::ReadPointCloudFromPLY | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::ReadPointCloudOption & | params | ||
| ) |
References DISPATCH_DTYPE_TO_TEMPLATE, cloudViewer::core::Tensor::Empty(), filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::core::Float32, cloudViewer::t::geometry::PointCloud::GetDevice(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::IsGaussianSplat(), LogDebug, LogError, LogWarning, name, offset, cloudViewer::t::geometry::PointCloud::SetPointAttr(), cloudViewer::utility::CountingProgressReporter::SetTotal(), size, stride, type, cloudViewer::core::Undefined, and cloudViewer::io::ReadPointCloudOption::update_progress.
| bool cloudViewer::t::io::ReadPointCloudFromPTS | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
References cloudViewer::t::geometry::PointCloud::Clear(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::core::Float32, format, cloudViewer::core::Tensor::GetDataPtr(), cloudViewer::utility::filesystem::CFile::GetFILE(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointColors(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadLine(), cloudViewer::t::geometry::PointCloud::SetPointAttr(), cloudViewer::t::geometry::PointCloud::SetPointColors(), cloudViewer::t::geometry::PointCloud::SetPointPositions(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::SplitString(), cloudViewer::core::UInt8, cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::ReadPointCloudOption::update_progress, x, y, and z.
| bool cloudViewer::t::io::ReadPointCloudFromSPLAT | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::ReadPointCloudOption & | params | ||
| ) |
References cloudViewer::t::geometry::PointCloud::Clear(), cloudViewer::utility::filesystem::CFile::CurPos(), e, cloudViewer::core::Tensor::Empty(), filename, cloudViewer::utility::CountingProgressReporter::Finish(), float, cloudViewer::core::Float32, cloudViewer::core::Tensor::GetDataPtr(), cloudViewer::utility::filesystem::CFile::GetFileSize(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), LogError, LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadData(), cloudViewer::t::geometry::PointCloud::SetPointAttr(), cloudViewer::t::geometry::PointCloud::SetPointPositions(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::ReadPointCloudOption::update_progress.
| bool cloudViewer::t::io::ReadPointCloudFromTXT | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::ReadPointCloudOption & | params | ||
| ) |
References cloudViewer::t::geometry::PointCloud::Clear(), cloudViewer::utility::filesystem::CFile::CurPos(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::core::Float32, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), cloudViewer::utility::filesystem::CFile::GetFileSize(), cloudViewer::utility::filesystem::CFile::GetNumLines(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadLine(), cloudViewer::t::geometry::PointCloud::SetPointAttr(), cloudViewer::t::geometry::PointCloud::SetPointPositions(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::ReadPointCloudOption::update_progress.
| bool cloudViewer::t::io::ReadPointCloudFromXYZI | ( | const std::string & | filename, |
| geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::ReadPointCloudOption & | params | ||
| ) |
References cloudViewer::t::geometry::PointCloud::Clear(), cloudViewer::utility::filesystem::CFile::CurPos(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::core::Float64, cloudViewer::utility::filesystem::CFile::GetFileSize(), cloudViewer::utility::filesystem::CFile::GetNumLines(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), points, cloudViewer::utility::filesystem::CFile::ReadLine(), cloudViewer::t::geometry::PointCloud::SetPointAttr(), cloudViewer::t::geometry::PointCloud::SetPoints(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::ReadPointCloudOption::update_progress, x, y, and z.
| bool cloudViewer::t::io::ReadTriangleMesh | ( | const std::string & | filename, |
| geometry::TriangleMesh & | mesh, | ||
| cloudViewer::io::ReadTriangleMeshOptions | params = {} |
||
| ) |
The general entrance for reading a TriangleMesh from a file. The function calls read functions based on the extension name of filename. Supported formats are obj,ply,stl,off,gltf,glb,fbx .
| filename | Path to the mesh file. |
| mesh | Output parameter for the mesh. |
| params | Additional read options to enable post-processing or progress reporting. |
References file_extension_to_trianglemesh_read_function, filename, cloudViewer::t::geometry::TriangleMesh::FromLegacy(), cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), cloudViewer::core::Tensor::GetLength(), cloudViewer::t::geometry::TriangleMesh::GetTriangleIndices(), cloudViewer::t::geometry::TriangleMesh::GetVertexPositions(), cloudViewer::t::geometry::TriangleMesh::HasTriangleIndices(), cloudViewer::t::geometry::TriangleMesh::HasVertexPositions(), LogDebug, LogWarning, and cloudViewer::io::ReadTriangleMesh().
Referenced by cloudViewer::t::geometry::IOReadTensorTriangleMesh().
| bool cloudViewer::t::io::ReadTriangleMeshFromNPZ | ( | const std::string & | filename, |
| geometry::TriangleMesh & | mesh, | ||
| const cloudViewer::io::ReadTriangleMeshOptions & | params | ||
| ) |
References filename, cloudViewer::t::geometry::DrawableGeometry::GetMaterial(), cloudViewer::visualization::rendering::Material::IsValid(), LogWarning, ReadNpz(), cloudViewer::visualization::rendering::Material::SetDefaultProperties(), cloudViewer::visualization::rendering::Material::SetMaterialName(), cloudViewer::visualization::rendering::Material::SetScalarProperty(), cloudViewer::visualization::rendering::Material::SetTextureMap(), cloudViewer::t::geometry::TriangleMesh::SetTriangleAttr(), cloudViewer::t::geometry::TriangleMesh::SetTriangleColors(), cloudViewer::t::geometry::TriangleMesh::SetTriangleIndices(), cloudViewer::t::geometry::TriangleMesh::SetTriangleNormals(), cloudViewer::t::geometry::TriangleMesh::SetVertexAttr(), cloudViewer::t::geometry::TriangleMesh::SetVertexColors(), cloudViewer::t::geometry::TriangleMesh::SetVertexNormals(), and cloudViewer::t::geometry::TriangleMesh::SetVertexPositions().
| bool cloudViewer::t::io::ReadTriangleMeshUsingASSIMP | ( | const std::string & | filename, |
| geometry::TriangleMesh & | mesh, | ||
| const cloudViewer::io::ReadTriangleMeshOptions & | params | ||
| ) |
References cloudViewer::t::geometry::TriangleMesh::Clear(), cloudViewer::core::Concatenate(), cloudViewer::core::Tensor::Empty(), cloudViewer::io::ReadTriangleMeshOptions::enable_post_processing, filename, cloudViewer::core::Dtype::Float32, cloudViewer::core::Tensor::GetDataPtr(), cloudViewer::core::Tensor::IndexGet(), cloudViewer::core::Dtype::Int64, kPostProcessFlags_compulsory, kPostProcessFlags_fast, LogWarning, cloudViewer::core::ParallelFor(), cloudViewer::t::geometry::TriangleMesh::SetTriangleAttr(), cloudViewer::t::geometry::TriangleMesh::SetTriangleIndices(), cloudViewer::t::geometry::TriangleMesh::SetVertexColors(), cloudViewer::t::geometry::TriangleMesh::SetVertexNormals(), and cloudViewer::t::geometry::TriangleMesh::SetVertexPositions().
|
static |
References cloudViewer::core::Float32, cloudViewer::core::Float64, cloudViewer::core::Int16, cloudViewer::core::Int32, cloudViewer::core::Int64, cloudViewer::core::Int8, LogError, cloudViewer::t::io::PCLPointField::size, cloudViewer::t::io::PCLPointField::type, cloudViewer::core::UInt16, cloudViewer::core::UInt32, cloudViewer::core::UInt64, and cloudViewer::core::UInt8.
Referenced by GenerateHeader().
|
static |
References image, and cloudViewer::core::UInt16.
Referenced by WriteImageToPNG(), cloudViewer::io::WriteImageToPNG(), and WriteImageToPNGInMemory().
|
static |
References patch::to_string(), and WriteImageToPNGInMemory().
| cloudViewer::t::io::STRINGIFY_ENUM | ( | rs2_format | , |
| { {RS2_FORMAT_ANY, "RS2_FORMAT_ANY"}, {RS2_FORMAT_Z16, "RS2_FORMAT_Z16"}, {RS2_FORMAT_DISPARITY16, "RS2_FORMAT_DISPARITY16"}, {RS2_FORMAT_XYZ32F, "RS2_FORMAT_XYZ32F"}, {RS2_FORMAT_YUYV, "RS2_FORMAT_YUYV"}, {RS2_FORMAT_RGB8, "RS2_FORMAT_RGB8"}, {RS2_FORMAT_BGR8, "RS2_FORMAT_BGR8"}, {RS2_FORMAT_RGBA8, "RS2_FORMAT_RGBA8"}, {RS2_FORMAT_BGRA8, "RS2_FORMAT_BGRA8"}, {RS2_FORMAT_Y8, "RS2_FORMAT_Y8"}, {RS2_FORMAT_Y16, "RS2_FORMAT_Y16"}, {RS2_FORMAT_RAW10, "RS2_FORMAT_RAW10"}, {RS2_FORMAT_RAW16, "RS2_FORMAT_RAW16"}, {RS2_FORMAT_RAW8, "RS2_FORMAT_RAW8"}, {RS2_FORMAT_UYVY, "RS2_FORMAT_UYVY"}, {RS2_FORMAT_MOTION_RAW, "RS2_FORMAT_MOTION_RAW"}, {RS2_FORMAT_MOTION_XYZ32F, "RS2_FORMAT_MOTION_XYZ32F"}, {RS2_FORMAT_GPIO_RAW, "RS2_FORMAT_GPIO_RAW"}, {RS2_FORMAT_6DOF, "RS2_FORMAT_6DOF"}, {RS2_FORMAT_DISPARITY32, "RS2_FORMAT_DISPARITY32"}, {RS2_FORMAT_Y10BPACK, "RS2_FORMAT_Y10BPACK"}, {RS2_FORMAT_DISTANCE, "RS2_FORMAT_DISTANCE"}, {RS2_FORMAT_MJPEG, "RS2_FORMAT_MJPEG"}, {RS2_FORMAT_Y8I, "RS2_FORMAT_Y8I"}, {RS2_FORMAT_Y12I, "RS2_FORMAT_Y12I"}, {RS2_FORMAT_INZI, "RS2_FORMAT_INZI"}, {RS2_FORMAT_INVI, "RS2_FORMAT_INVI"}, {RS2_FORMAT_W10, "RS2_FORMAT_W10"}, {RS2_FORMAT_Z16H, "RS2_FORMAT_Z16H"} } | |||
| ) |
RS2 pixel formats.
| cloudViewer::t::io::STRINGIFY_ENUM | ( | rs2_l500_visual_preset | , |
| { {RS2_L500_VISUAL_PRESET_DEFAULT, "RS2_L500_VISUAL_PRESET_DEFAULT"}, {RS2_L500_VISUAL_PRESET_CUSTOM, "RS2_L500_VISUAL_PRESET_CUSTOM"}, {RS2_L500_VISUAL_PRESET_NO_AMBIENT, "RS2_L500_VISUAL_PRESET_NO_AMBIENT"}, {RS2_L500_VISUAL_PRESET_LOW_AMBIENT, "RS2_L500_VISUAL_PRESET_LOW_AMBIENT"}, {RS2_L500_VISUAL_PRESET_MAX_RANGE, "RS2_L500_VISUAL_PRESET_MAX_RANGE"}, {RS2_L500_VISUAL_PRESET_SHORT_RANGE, "RS2_L500_VISUAL_PRESET_SHORT_RANGE"} } | |||
| ) |
RS2 visual presets for L500 devices.
| cloudViewer::t::io::STRINGIFY_ENUM | ( | rs2_rs400_visual_preset | , |
| { {RS2_RS400_VISUAL_PRESET_DEFAULT, "RS2_RS400_VISUAL_PRESET_DEFAULT"}, {RS2_RS400_VISUAL_PRESET_CUSTOM, "RS2_RS400_VISUAL_PRESET_CUSTOM"}, {RS2_RS400_VISUAL_PRESET_HAND, "RS2_RS400_VISUAL_PRESET_HAND"}, {RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY, "RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY"}, {RS2_RS400_VISUAL_PRESET_HIGH_DENSITY, "RS2_RS400_VISUAL_PRESET_HIGH_DENSITY"}, {RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY, "RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY"}, {RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN, "RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN"} } | |||
| ) |
RS2 visual presets for RS400 devices.
| cloudViewer::t::io::STRINGIFY_ENUM | ( | rs2_sr300_visual_preset | , |
| { {RS2_SR300_VISUAL_PRESET_DEFAULT, "RS2_SR300_VISUAL_PRESET_DEFAULT"}, {RS2_SR300_VISUAL_PRESET_SHORT_RANGE, "RS2_SR300_VISUAL_PRESET_SHORT_RANGE"}, {RS2_SR300_VISUAL_PRESET_LONG_RANGE, "RS2_SR300_VISUAL_PRESET_LONG_RANGE"}, {RS2_SR300_VISUAL_PRESET_BACKGROUND_SEGMENTATION, "RS2_SR300_VISUAL_PRESET_BACKGROUND_SEGMENTATION"}, {RS2_SR300_VISUAL_PRESET_GESTURE_RECOGNITION, "RS2_SR300_VISUAL_PRESET_GESTURE_RECOGNITION"}, {RS2_SR300_VISUAL_PRESET_OBJECT_SCANNING, "RS2_SR300_VISUAL_PRESET_OBJECT_SCANNING"}, {RS2_SR300_VISUAL_PRESET_FACE_ANALYTICS, "RS2_SR300_VISUAL_PRESET_FACE_ANALYTICS"}, {RS2_SR300_VISUAL_PRESET_FACE_LOGIN, "RS2_SR300_VISUAL_PRESET_FACE_LOGIN"}, {RS2_SR300_VISUAL_PRESET_GR_CURSOR, "RS2_SR300_VISUAL_PRESET_GR_CURSOR"}, {RS2_SR300_VISUAL_PRESET_MID_RANGE, "RS2_SR300_VISUAL_PRESET_MID_RANGE"}, {RS2_SR300_VISUAL_PRESET_IR_ONLY, "RS2_SR300_VISUAL_PRESET_IR_ONLY"} } | |||
| ) |
| cloudViewer::t::io::STRINGIFY_ENUM | ( | rs2_stream | , |
| { {RS2_STREAM_ANY, "RS2_STREAM_ANY"}, {RS2_STREAM_DEPTH, "RS2_STREAM_DEPTH"}, {RS2_STREAM_COLOR, "RS2_STREAM_COLOR"}, {RS2_STREAM_INFRARED, "RS2_STREAM_INFRARED"}, {RS2_STREAM_FISHEYE, "RS2_STREAM_FISHEYE"}, {RS2_STREAM_GYRO, "RS2_STREAM_GYRO"}, {RS2_STREAM_ACCEL, "RS2_STREAM_ACCEL"}, {RS2_STREAM_GPIO, "RS2_STREAM_GPIO"}, {RS2_STREAM_POSE, "RS2_STREAM_POSE"}, {RS2_STREAM_CONFIDENCE, "RS2_STREAM_CONFIDENCE"} } | |||
| ) |
RS2 stream types.
|
staticdelete |
| void cloudViewer::t::io::UnpackASCIIPCDElement< double > | ( | double & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< float > | ( | float & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::int16_t > | ( | std::int16_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::int32_t > | ( | std::int32_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::int64_t > | ( | std::int64_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::int8_t > | ( | std::int8_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::uint16_t > | ( | std::uint16_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::uint32_t > | ( | std::uint32_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::uint64_t > | ( | std::uint64_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
| void cloudViewer::t::io::UnpackASCIIPCDElement< std::uint8_t > | ( | std::uint8_t & | data, |
| const char * | data_ptr | ||
| ) |
References data.
|
staticdelete |
| int cloudViewer::t::io::WriteElementDataToFileASCII< double > | ( | const double & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< float > | ( | const float & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::int16_t > | ( | const std::int16_t & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::int32_t > | ( | const std::int32_t & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::int64_t > | ( | const std::int64_t & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::int8_t > | ( | const std::int8_t & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::uint16_t > | ( | const std::uint16_t & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::uint32_t > | ( | const std::uint32_t & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::uint64_t > | ( | const std::uint64_t & | data, |
| FILE * | file | ||
| ) |
References data.
| int cloudViewer::t::io::WriteElementDataToFileASCII< std::uint8_t > | ( | const std::uint8_t & | data, |
| FILE * | file | ||
| ) |
References data.
| void cloudViewer::t::io::WriteHashMap | ( | const std::string & | filename, |
| const core::HashMap & | hashmap | ||
| ) |
Save a hash map's keys and values to a npz file at 'key' and 'value'.
| filename | The npz file name to write to. |
| hashmap | HashMap to save. |
References format, cloudViewer::core::HashMap::GetActiveIndices(), cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), cloudViewer::core::HashMap::GetKeyTensor(), cloudViewer::core::HashMap::GetValueTensors(), cloudViewer::core::Tensor::IndexGet(), cloudViewer::core::Int64, cloudViewer::t::geometry::kernel::image::To(), cloudViewer::core::Tensor::To(), and WriteNpz().
Referenced by cloudViewer::core::HashSet::Save(), and cloudViewer::core::HashMap::Save().
| bool cloudViewer::t::io::WriteImage | ( | const std::string & | filename, |
| const geometry::Image & | image, | ||
| int | quality = kCloudViewerImageIODefaultQuality |
||
| ) |
The general entrance for writing an Image to a file The function calls write functions based on the extension name of filename. If the write function supports quality, the parameter will be used. Otherwise it will be ignored.
| filename | Full path to image. Supported file formats are png, jpg/jpeg. |
| image | An object of type cloudViewer::t::geometry::Image. |
| quality | PNG: [0-9] <=2 fast write for storing intermediate data >=3 (default) normal write for balanced speed and file size JPEG: [0-100] Typically in [70,95]. 90 is default (good quality). |
Supported file extensions are png, jpg/jpeg. Data type and number of channels depends on the file extension.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), image, and LogWarning.
| bool cloudViewer::t::io::WriteImageToJPG | ( | const std::string & | filename, |
| const geometry::Image & | image, | ||
| int | quality | ||
| ) |
| bool cloudViewer::t::io::WriteImageToPNG | ( | const std::string & | filename, |
| const geometry::Image & | image, | ||
| int | quality | ||
| ) |
| bool cloudViewer::t::io::WriteImageToPNGInMemory | ( | std::vector< uint8_t > & | buffer, |
| const t::geometry::Image & | image, | ||
| int | quality | ||
| ) |
References image, kCloudViewerImageIODefaultQuality, LogWarning, SetPNGImageFromImage(), cloudViewer::core::UInt16, and cloudViewer::core::UInt8.
Referenced by SetTextureMaterialProperty().
| void cloudViewer::t::io::WriteNpy | ( | const std::string & | file_name, |
| const core::Tensor & | tensor | ||
| ) |
Save a tensor to a Numpy .npy file.
| file_name | The file name to write to. |
| tensor | The tensor to save. |
References cloudViewer::t::io::NumpyArray::Save().
Referenced by cloudViewer::core::Tensor::Save().
| void cloudViewer::t::io::WriteNpz | ( | const std::string & | file_name, |
| const std::unordered_map< std::string, core::Tensor > & | tensor_map | ||
| ) |
Save a string to tensor map as Numpy .npz file.
| file_name | The file name to write to. |
| tensor_map | The tensor map to save. |
References WriteNpzEmpty(), and WriteNpzOneTensor().
Referenced by cloudViewer::t::geometry::VoxelBlockGrid::Save(), WriteHashMap(), and WritePointCloudToNPZ().
|
static |
References cloudViewer::t::io::CharVector::Append(), cloudViewer::t::io::CharVector::Data(), cloudViewer::utility::filesystem::CFile::GetError(), cloudViewer::utility::filesystem::CFile::GetFILE(), LogError, cloudViewer::utility::filesystem::CFile::Open(), and cloudViewer::t::io::CharVector::Size().
Referenced by WriteNpz().
|
static |
References cloudViewer::t::io::CharVector::Append(), cloudViewer::t::io::CharVector::Begin(), cloudViewer::core::Dtype::ByteSize(), CreateNumpyHeader(), cloudViewer::t::io::CharVector::Data(), data, cloudViewer::core::Tensor::GetDataPtr(), cloudViewer::core::Tensor::GetDtype(), cloudViewer::utility::filesystem::CFile::GetError(), cloudViewer::utility::filesystem::CFile::GetFILE(), cloudViewer::core::Tensor::GetShape(), LogError, cloudViewer::utility::filesystem::CFile::Open(), ParseZipFooter(), cloudViewer::t::io::CharVector::Resize(), and cloudViewer::t::io::CharVector::Size().
Referenced by WriteNpz().
|
static |
References cloudViewer::t::geometry::TensorMap::Contiguous(), cloudViewer::t::io::PCDHeader::datatype, DISPATCH_DTYPE_TO_TEMPLATE, cloudViewer::t::io::PCDHeader::fields, cloudViewer::core::Float32, cloudViewer::core::Tensor::GetLength(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), cloudViewer::t::geometry::PointCloud::HasPointColors(), cloudViewer::t::geometry::PointCloud::HasPointNormals(), cloudViewer::t::geometry::PointCloud::IsEmpty(), LogWarning, PackColorsToFloat(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
Referenced by cloudViewer::io::WritePointCloudToPCD(), and WritePointCloudToPCD().
|
static |
References ASCII, BINARY, BINARY_COMPRESSED, cloudViewer::t::io::PCDHeader::datatype, cloudViewer::t::io::PCDHeader::fields, cloudViewer::t::io::PCDHeader::height, cloudViewer::t::io::PCDHeader::points, cloudViewer::t::io::PCDHeader::version, and cloudViewer::t::io::PCDHeader::width.
Referenced by cloudViewer::io::WritePointCloudToPCD(), and WritePointCloudToPCD().
| bool cloudViewer::t::io::WritePointCloud | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| bool | write_ascii, | ||
| bool | compressed, | ||
| bool | print_progress | ||
| ) |
| bool cloudViewer::t::io::WritePointCloud | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params = {} |
||
| ) |
The general entrance for writing a PointCloud to a file The function calls write functions based on the extension name of filename. See WritePointCloudOption for additional options you can pass.
References file_extension_to_pointcloud_write_function, filename, format, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), cloudViewer::core::Tensor::GetLength(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), cloudViewer::t::geometry::PointCloud::IsEmpty(), LogDebug, cloudViewer::t::geometry::PointCloud::To(), cloudViewer::t::geometry::PointCloud::ToLegacy(), and cloudViewer::io::WritePointCloud().
Referenced by cloudViewer::t::geometry::IOWriteTensorPointCloud(), and cloudViewer::t::pipelines::slac::PreprocessPointClouds().
| bool cloudViewer::t::io::WritePointCloudToNPZ | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
| bool cloudViewer::t::io::WritePointCloudToPCD | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
References AssertTensorDevice, cloudViewer::io::WritePointCloudOption::compressed, filename, cloudViewer::utility::filesystem::FOpen(), GenerateHeader(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), LogWarning, NULL, cloudViewer::io::WritePointCloudOption::write_ascii, WritePCDData(), and WritePCDHeader().
| bool cloudViewer::t::io::WritePointCloudToPLY | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::WritePointCloudOption & | params | ||
| ) |
References cloudViewer::t::geometry::TensorMap::Contiguous(), DISPATCH_DTYPE_TO_TEMPLATE, filename, cloudViewer::core::Tensor::GetLength(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), cloudViewer::t::geometry::PointCloud::HasPointColors(), cloudViewer::t::geometry::PointCloud::HasPointNormals(), cloudViewer::t::geometry::PointCloud::IsEmpty(), cloudViewer::t::geometry::PointCloud::IsGaussianSplat(), LogDebug, LogWarning, NULL, cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::t::geometry::PointCloud::To(), patch::to_string(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::WritePointCloudOption::update_progress, and cloudViewer::io::WritePointCloudOption::write_ascii.
| bool cloudViewer::t::io::WritePointCloudToPTS | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
References AssertTensorShape, colors, ConvertColorTensorToUint8(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::core::Float32, cloudViewer::core::Tensor::GetDataPtr(), cloudViewer::utility::filesystem::CFile::GetFILE(), cloudViewer::core::Tensor::GetLength(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointColors(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), cloudViewer::t::geometry::PointCloud::HasPointAttr(), cloudViewer::t::geometry::PointCloud::HasPointColors(), cloudViewer::t::geometry::PointCloud::HasPointPositions(), cloudViewer::t::geometry::PointCloud::IsEmpty(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::core::Tensor::To(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::t::io::WritePointCloudToSPLAT | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::WritePointCloudOption & | params | ||
| ) |
References color, cloudViewer::t::geometry::TensorMap::Contiguous(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::core::Float32, cloudViewer::core::Tensor::GetLength(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), cloudViewer::t::geometry::PointCloud::IsEmpty(), cloudViewer::t::geometry::PointCloud::IsGaussianSplat(), LogWarning, cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::t::io::WritePointCloudToTXT | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::WritePointCloudOption & | params | ||
| ) |
References e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::utility::filesystem::CFile::GetFILE(), cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPointPositions(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), points, cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::t::io::WritePointCloudToXYZI | ( | const std::string & | filename, |
| const geometry::PointCloud & | pointcloud, | ||
| const cloudViewer::io::WritePointCloudOption & | params | ||
| ) |
References e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::utility::filesystem::CFile::GetFILE(), cloudViewer::t::geometry::PointCloud::GetPointAttr(), cloudViewer::t::geometry::PointCloud::GetPoints(), cloudViewer::core::Tensor::GetShape(), cloudViewer::t::geometry::PointCloud::HasPointAttr(), cloudViewer::core::Tensor::Item(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), points, cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::t::io::WriteTriangleMesh | ( | const std::string & | filename, |
| const geometry::TriangleMesh & | mesh, | ||
| bool | write_ascii = false, |
||
| bool | compressed = false, |
||
| bool | write_vertex_normals = true, |
||
| bool | write_vertex_colors = true, |
||
| bool | write_triangle_uvs = true, |
||
| bool | print_progress = false |
||
| ) |
The general entrance for writing a TriangleMesh to a file The function calls write functions based on the extension name of filename. If the write function supports binary encoding and compression, the later two parameters will be used. Otherwise they will be ignored. At current only .obj format supports uv coordinates (triangle_uvs) and textures.
| bool cloudViewer::t::io::WriteTriangleMeshToNPZ | ( | const std::string & | filename, |
| const geometry::TriangleMesh & | mesh, | ||
| const bool | write_ascii, | ||
| const bool | compressed, | ||
| const bool | write_vertex_normals, | ||
| const bool | write_vertex_colors, | ||
| const bool | write_triangle_uvs, | ||
| const bool | print_progress | ||
| ) |
| bool cloudViewer::t::io::WriteTriangleMeshUsingASSIMP | ( | const std::string & | filename, |
| const geometry::TriangleMesh & | mesh, | ||
| const bool | write_ascii, | ||
| const bool | compressed, | ||
| const bool | write_vertex_normals, | ||
| const bool | write_vertex_colors, | ||
| const bool | write_triangle_uvs, | ||
| const bool | print_progress | ||
| ) |
|
static |
Referenced by ReadPointCloud().
|
static |
Referenced by WritePointCloud().
|
static |
Referenced by ReadTriangleMesh(), and cloudViewer::io::ReadTriangleMesh().
|
static |
|
constexpr |
Referenced by WriteImageToJPG(), WriteImageToPNG(), and WriteImageToPNGInMemory().
| const unsigned int cloudViewer::t::io::kPostProcessFlags_compulsory |
Referenced by ReadTriangleMeshUsingASSIMP().
| const unsigned int cloudViewer::t::io::kPostProcessFlags_fast |
Referenced by ReadTriangleMeshUsingASSIMP().
|
static |
Referenced by cloudViewer::t::io::RealSenseSensorConfig::RealSenseSensorConfig().