![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Namespaces | |
| k4a_plugin | |
| rpc | |
Classes | |
| struct | TextureImages |
| struct | ReadTriangleModelOptions |
| class | AzureKinectRecorder |
| class | AzureKinectSensor |
| class | AzureKinectSensorConfig |
| class | MKVMetadata |
| class | MKVReader |
| class | MKVWriter |
| class | RGBDRecorder |
| class | RGBDSensor |
| class | RGBDSensorConfig |
| struct | ArrayAdapter |
| struct | IntArrayBase |
| struct | IntArray |
| struct | ReadTriangleMeshOptions |
| struct | ReadPointCloudOption |
| Optional parameters to ReadPointCloud. More... | |
| struct | WritePointCloudOption |
| Optional parameters to WritePointCloud. More... | |
Enumerations | |
| enum | FileGeometry { CONTENTS_UNKNOWN = 0 , CONTAINS_POINTS = (1 << 0) , CONTAINS_LINES = (1 << 1) , CONTAINS_TRIANGLES = (1 << 2) } |
Functions | |
| void | LoadTextures (const std::string &filename, const aiScene *scene, const aiMaterial *mat, TextureImages &maps) |
| bool | ReadTriangleMeshUsingASSIMP (const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions ¶ms) |
| bool | ReadModelUsingAssimp (const std::string &filename, visualization::rendering::TriangleMeshModel &model, const ReadTriangleModelOptions ¶ms) |
| FileGeometry | ReadFileGeometryType (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeGLTF (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeOBJ (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeFBX (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeOFF (const std::string &path) |
| FileGeometry | ReadFileGeometryTypePCD (const std::string &path) |
| FileGeometry | ReadFileGeometryTypePLY (const std::string &path) |
| FileGeometry | ReadFileGeometryTypePTS (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeSTL (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeXYZ (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeXYZN (const std::string &path) |
| FileGeometry | ReadFileGeometryTypeXYZRGB (const std::string &path) |
| bool | ReadPointCloudFromPCD (const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToPCD (const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromXYZ (const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | ReadPointCloudInMemoryFromXYZ (const unsigned char *buffer, const size_t length, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToXYZ (const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | WritePointCloudInMemoryToXYZ (unsigned char *&buffer, size_t &length, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromXYZN (const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToXYZN (const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromXYZRGB (const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToXYZRGB (const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromPLY (const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToPLY (const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | ReadPointCloudFromPTS (const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloudToPTS (const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| std::shared_ptr< pipelines::color_map::ImageWarpingField > | CreateImageWarpingFieldFromFile (const std::string &filename) |
| bool | ReadImageWarpingField (const std::string &filename, pipelines::color_map::ImageWarpingField &warping_field) |
| bool | WriteImageWarpingField (const std::string &filename, const pipelines::color_map::ImageWarpingField &trajectory) |
| bool | ReadTriangleModel (const std::string &filename, visualization::rendering::TriangleMeshModel &model, ReadTriangleModelOptions params) |
| std::shared_ptr< ccPointCloud > | CreatePointCloudFromFile (const std::string &filename, const std::string &format, bool print_progress) |
| std::shared_ptr< ccPointCloud > | CreatePointCloudFromMemory (const unsigned char *buffer, const size_t length, const std::string &format, bool print_progress) |
| bool | ReadPointCloud (const std::string &filename, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | ReadPointCloud (const std::string &filename, ccPointCloud &pointcloud, const std::string &file_format, bool remove_nan_points, bool remove_infinite_points, bool print_progress) |
| bool | ReadPointCloud (const unsigned char *buffer, const size_t length, ccPointCloud &pointcloud, const ReadPointCloudOption ¶ms) |
| bool | WritePointCloud (const std::string &filename, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| bool | WritePointCloud (const std::string &filename, const ccPointCloud &pointcloud, const std::string &file_format, bool write_ascii, bool compressed, bool print_progress) |
| bool | WritePointCloud (unsigned char *&buffer, size_t &length, const ccPointCloud &pointcloud, const WritePointCloudOption ¶ms) |
| std::shared_ptr< pipelines::registration::PoseGraph > | CreatePoseGraphFromFile (const std::string &filename) |
| bool | ReadPoseGraph (const std::string &filename, pipelines::registration::PoseGraph &pose_graph) |
| bool | WritePoseGraph (const std::string &filename, const pipelines::registration::PoseGraph &pose_graph) |
| void | ConvertBGRAToRGB (geometry::Image &bgra, geometry::Image &rgb) |
| static std::map< std::string, k4a_image_format_t > | string_to_k4a_image_format_t ({ {"K4A_IMAGE_FORMAT_COLOR_MJPG", K4A_IMAGE_FORMAT_COLOR_MJPG}, {"K4A_IMAGE_FORMAT_COLOR_NV12", K4A_IMAGE_FORMAT_COLOR_NV12}, {"K4A_IMAGE_FORMAT_COLOR_YUY2", K4A_IMAGE_FORMAT_COLOR_YUY2}, {"K4A_IMAGE_FORMAT_COLOR_BGRA32", K4A_IMAGE_FORMAT_COLOR_BGRA32}, {"K4A_IMAGE_FORMAT_DEPTH16", K4A_IMAGE_FORMAT_DEPTH16}, {"K4A_IMAGE_FORMAT_IR16", K4A_IMAGE_FORMAT_IR16}, {"K4A_IMAGE_FORMAT_CUSTOM", K4A_IMAGE_FORMAT_CUSTOM}, }) |
| std::shared_ptr< ccMesh > | CreateMeshFromFile (const std::string &filename, bool print_progress) |
| bool | ReadTriangleMesh (const std::string &filename, ccMesh &mesh, ReadTriangleMeshOptions params) |
| bool | WriteTriangleMesh (const std::string &filename, const ccMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress) |
| bool | IsPointInsidePolygon (const Eigen::MatrixX2d &polygon, double x, double y) |
| bool | AddTrianglesByEarClipping (ccMesh &mesh, std::vector< unsigned int > &indices) |
| bool | ReadTriangleMeshFromPLY (const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions ¶ms) |
| bool | WriteTriangleMeshToPLY (const std::string &filename, const ccMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress) |
| bool | ReadTriangleMeshFromSTL (const std::string &filename, ccMesh &mesh, bool print_progress) |
| bool | WriteTriangleMeshToSTL (const std::string &filename, const ccMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress) |
| bool | ReadTriangleMeshFromOBJ (const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions &) |
| bool | WriteTriangleMeshToOBJ (const std::string &filename, const ccMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress) |
| bool | ReadTriangleMeshFromOFF (const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions ¶ms) |
| bool | WriteTriangleMeshToOFF (const std::string &filename, const ccMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress) |
| bool | ReadTriangleMeshFromGLTF (const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions ¶ms) |
| bool | WriteTriangleMeshToGLTF (const std::string &filename, const ccMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress) |
| std::shared_ptr< ccHObject > | CreateEntityFromFile (const std::string &filename, const std::string &format="auto", bool print_progress=false) |
| bool | ReadEntity (const std::string &filename, ccHObject &obj, const std::string &format="auto", bool print_progress=false) |
| bool | WriteEntity (const std::string &filename, const ccHObject &obj, bool write_ascii=false, bool compressed=false, bool print_progress=false) |
| bool | AutoReadEntity (const std::string &filename, ccHObject &entity, const ReadPointCloudOption ¶ms) |
| bool | AutoWriteEntity (const std::string &filename, const ccHObject &entity, const WritePointCloudOption ¶ms) |
| bool | AutoReadMesh (const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions ¶ms={}) |
| bool | AutoWriteMesh (const std::string &filename, const ccMesh &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) |
| bool | ReadFeature (const std::string &filename, utility::Feature &feature) |
| bool | WriteFeature (const std::string &filename, const utility::Feature &feature) |
| bool | ReadFeatureFromBIN (const std::string &filename, utility::Feature &feature) |
| bool | WriteFeatureToBIN (const std::string &filename, const utility::Feature &feature) |
| bool | ReadIJsonConvertible (const std::string &filename, cloudViewer::utility::IJsonConvertible &object) |
| bool | WriteIJsonConvertible (const std::string &filename, const cloudViewer::utility::IJsonConvertible &object) |
| bool | ReadIJsonConvertibleFromJSON (const std::string &filename, cloudViewer::utility::IJsonConvertible &object) |
| bool | WriteIJsonConvertibleToJSON (const std::string &filename, const cloudViewer::utility::IJsonConvertible &object) |
| bool | ReadIJsonConvertibleFromJSONString (const std::string &json_string, cloudViewer::utility::IJsonConvertible &object) |
| bool | WriteIJsonConvertibleToJSONString (std::string &json_string, const cloudViewer::utility::IJsonConvertible &object) |
| std::shared_ptr< geometry::Image > | CreateImageFromFile (const std::string &filename) |
| std::shared_ptr< geometry::Image > | CreateImageFromMemory (const std::string &image_format, const unsigned char *image_data_ptr, size_t image_data_size) |
| Factory function to create an image from memory. More... | |
| bool | ReadImage (const std::string &filename, geometry::Image &image) |
| bool | ReadImageFromMemory (const std::string &image_format, const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image) |
| bool | WriteImage (const std::string &filename, const geometry::Image &image, int quality=kCloudViewerImageIODefaultQuality) |
| bool | ReadImageFromPNG (const std::string &filename, geometry::Image &image) |
| bool | ReadPNGFromMemory (const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image) |
| bool | WriteImageToPNG (const std::string &filename, const geometry::Image &image, int quality=kCloudViewerImageIODefaultQuality) |
| bool | ReadImageFromJPG (const std::string &filename, geometry::Image &image) |
| bool | ReadJPGFromMemory (const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image) |
| bool | WriteImageToJPG (const std::string &filename, const geometry::Image &image, int quality=kCloudViewerImageIODefaultQuality) |
| std::shared_ptr< geometry::LineSet > | CreateLineSetFromFile (const std::string &filename, const std::string &format="auto", bool print_progress=false) |
| bool | ReadLineSet (const std::string &filename, geometry::LineSet &lineset, const std::string &format="auto", bool print_progress=false) |
| bool | WriteLineSet (const std::string &filename, const geometry::LineSet &lineset, bool write_ascii=false, bool compressed=false, bool print_progress=false) |
| bool | ReadLineSetFromPLY (const std::string &filename, geometry::LineSet &lineset, bool print_progress=false) |
| bool | WriteLineSetToPLY (const std::string &filename, const geometry::LineSet &lineset, bool write_ascii=false, bool compressed=false, bool print_progress=false) |
| std::shared_ptr< geometry::Octree > | CreateOctreeFromFile (const std::string &filename, const std::string &format="auto") |
| bool | ReadOctree (const std::string &filename, geometry::Octree &octree, const std::string &format="auto") |
| bool | WriteOctree (const std::string &filename, const geometry::Octree &octree) |
| bool | ReadOctreeFromJson (const std::string &filename, geometry::Octree &octree) |
| bool | WriteOctreeToJson (const std::string &filename, const geometry::Octree &octree) |
| std::shared_ptr< camera::PinholeCameraTrajectory > | CreatePinholeCameraTrajectoryFromFile (const std::string &filename) |
| bool | ReadPinholeCameraTrajectory (const std::string &filename, camera::PinholeCameraTrajectory &trajectory) |
| bool | WritePinholeCameraTrajectory (const std::string &filename, const camera::PinholeCameraTrajectory &trajectory) |
| bool | ReadPinholeCameraTrajectoryFromLOG (const std::string &filename, camera::PinholeCameraTrajectory &trajectory) |
| bool | WritePinholeCameraTrajectoryToLOG (const std::string &filename, const camera::PinholeCameraTrajectory &trajectory) |
| bool | ReadPinholeCameraTrajectoryFromTUM (const std::string &filename, camera::PinholeCameraTrajectory &trajectory) |
| bool | WritePinholeCameraTrajectoryToTUM (const std::string &filename, const camera::PinholeCameraTrajectory &trajectory) |
| std::shared_ptr< geometry::VoxelGrid > | CreateVoxelGridFromFile (const std::string &filename, const std::string &format="auto", bool print_progress=false) |
| bool | ReadVoxelGrid (const std::string &filename, geometry::VoxelGrid &voxelgrid, const std::string &format="auto", bool print_progress=false) |
| bool | WriteVoxelGrid (const std::string &filename, const geometry::VoxelGrid &voxelgrid, bool write_ascii=false, bool compressed=false, bool print_progress=false) |
| bool | ReadVoxelGridFromPLY (const std::string &filename, geometry::VoxelGrid &voxelgrid, bool print_progress=false) |
| bool | WriteVoxelGridToPLY (const std::string &filename, const geometry::VoxelGrid &voxelgrid, bool write_ascii=false, bool compressed=false, bool print_progress=false) |
| bool | ReadPinholeCameraTrajectoryFromJSON (const std::string &filename, camera::PinholeCameraTrajectory &trajectory) |
| bool | WritePinholeCameraTrajectoryToJSON (const std::string &filename, const camera::PinholeCameraTrajectory &trajectory) |
Variables | |
| const unsigned int | kPostProcessFlags_compulsory |
| const unsigned int | kPostProcessFlags_fast |
| static std::map< std::string, FileGeometry(*)(const std::string &)> | gExt2Func |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, ccPointCloud &, const ReadPointCloudOption &)> > | file_extension_to_pointcloud_read_function |
| static const std::unordered_map< std::string, std::function< bool(const unsigned char *, const size_t, ccPointCloud &, const ReadPointCloudOption &)> > | in_memory_to_pointcloud_read_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, const ccPointCloud &, const WritePointCloudOption &)> > | file_extension_to_pointcloud_write_function |
| static const std::unordered_map< std::string, std::function< bool(unsigned char *&, size_t &, const ccPointCloud &, const WritePointCloudOption &)> > | in_memory_to_pointcloud_write_function |
| static std::map< k4a_image_format_t, std::string > | k4a_image_format_t_to_string |
| static std::map< k4a_color_resolution_t, std::string > | k4a_color_resolution_t_to_string |
| static std::map< k4a_depth_mode_t, std::string > | k4a_depth_mode_t_to_string |
| static std::map< k4a_fps_t, std::string > | k4a_fps_t_to_string |
| static std::map< k4a_wired_sync_mode_t, std::string > | k4a_wired_sync_mode_t_to_string |
| static std::map< std::string, k4a_color_resolution_t > | string_to_k4a_color_resolution_t |
| static std::map< std::string, k4a_depth_mode_t > | string_to_k4a_depth_mode_t |
| static std::map< std::string, k4a_fps_t > | string_to_k4a_fps_t |
| static std::map< std::string, k4a_wired_sync_mode_t > | string_to_k4a_wired_sync_mode_t |
| static std::unordered_map< std::string, std::string > | standard_config |
| constexpr int | kCloudViewerImageIODefaultQuality = -1 |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, ccHObject &, const ReadPointCloudOption &)> > | file_extension_to_entity_read_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, const ccHObject &, const WritePointCloudOption &)> > | file_extension_to_entity_write_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, geometry::Octree &)> > | file_extension_to_octree_read_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, const geometry::Octree &)> > | file_extension_to_octree_write_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, camera::PinholeCameraTrajectory &)> > | file_extension_to_trajectory_read_function |
| static const std::unordered_map< std::string, std::function< bool(const std::string &, const camera::PinholeCameraTrajectory &)> > | file_extension_to_trajectory_write_function |
| Enumerator | |
|---|---|
| CONTENTS_UNKNOWN | |
| CONTAINS_POINTS | |
| CONTAINS_LINES | |
| CONTAINS_TRIANGLES | |
Definition at line 15 of file FileFormatIO.h.
| bool cloudViewer::io::AddTrianglesByEarClipping | ( | ccMesh & | mesh, |
| std::vector< unsigned int > & | indices | ||
| ) |
Function to convert a polygon into a collection of triangles whose vertices are only those of the polygon. Assume that the vertices are connected by edges based on their order, and the final vertex connected to the first. The triangles are added to the mesh that is passed as reference. The mesh should contain all vertices prior to calling this function.
Definition at line 314 of file TriangleMeshIO.cpp.
References ccMesh::addTriangle(), ccMesh::getVertice(), and IsPointInsidePolygon().
| bool cloudViewer::io::AutoReadEntity | ( | const std::string & | filename, |
| ccHObject & | entity, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 68 of file AutoIO.cpp.
References FileIOFilter::LoadParameters::alwaysDisplayLoadDialog, ccPointCloud::append(), FileIOFilter::LoadParameters::autoComputeNormals, CC_FERR_CONSOLE_ERROR, CC_FERR_NO_ERROR, CC_FERR_NO_LOAD, FileIOFilter::LoadParameters::coordinatesShift, FileIOFilter::LoadParameters::coordinatesShiftEnabled, FileIOFilter::DisplayErrorMessage(), e, filename, FileIOFilter::FindBestFilterForExtension(), ccMesh::getAssociatedCloud(), ccHObject::getChild(), ccHObject::getChildrenNumber(), FileIOFilter::GetFilters(), ccObject::getName(), CV_TYPES::HIERARCHY_OBJECT, FileIOFilter::IncreaseSesionCounter(), ccObject::isA(), ccMesh::IsEmpty(), ccObject::isKindOf(), LogWarning, ccMesh::merge(), CV_TYPES::MESH, ecvGlobalShiftManager::NO_DIALOG, FileIOFilter::LoadParameters::parentWidget, CV_TYPES::POINT_CLOUD, cloudViewer::io::ReadPointCloudOption::print_progress, FileIOFilter::ResetSesionCounter(), result, FileIOFilter::LoadParameters::sessionStart, ccObject::setBaseName(), ccObject::setFullPath(), ccObject::setName(), FileIOFilter::LoadParameters::shiftHandlingMode, cloudViewer::PointCloudTpl< T >::size(), ccHObjectCaster::ToMesh(), ccHObjectCaster::ToPointCloud(), and CVTools::ToQString().
Referenced by AutoReadMesh().
| bool cloudViewer::io::AutoReadMesh | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| const ReadTriangleMeshOptions & | params = {} |
||
| ) |
Definition at line 306 of file AutoIO.cpp.
References AutoReadEntity(), filename, cloudViewer::io::ReadTriangleMeshOptions::print_progress, and cloudViewer::io::ReadPointCloudOption::print_progress.
| bool cloudViewer::io::AutoWriteEntity | ( | const std::string & | filename, |
| const ccHObject & | entity, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 238 of file AutoIO.cpp.
References FileIOFilter::SaveParameters::alwaysDisplaySaveDialog, CC_FERR_CONSOLE_ERROR, CC_FERR_NO_ERROR, FileIOFilter::DisplayErrorMessage(), filename, FileIOFilter::FindBestFilterForExtension(), CVTools::FromQString(), FileIOFilter::GetFilters(), LogWarning, FileIOFilter::SaveParameters::parentWidget, cloudViewer::io::WritePointCloudOption::print_progress, FileIOFilter::ResetSesionCounter(), result, and CVTools::ToQString().
| bool cloudViewer::io::AutoWriteMesh | ( | const std::string & | filename, |
| const ccMesh & | 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 |
||
| ) |
Definition at line 314 of file AutoIO.cpp.
| void cloudViewer::io::ConvertBGRAToRGB | ( | geometry::Image & | bgra, |
| geometry::Image & | rgb | ||
| ) |
Definition at line 142 of file AzureKinectSensor.cpp.
References cloudViewer::geometry::Image::bytes_per_channel_, cloudViewer::geometry::Image::height_, LogError, cloudViewer::geometry::Image::num_of_channels_, cloudViewer::geometry::Image::PointerAt(), rgb, and cloudViewer::geometry::Image::width_.
Referenced by cloudViewer::io::AzureKinectSensor::DecompressCapture().
| std::shared_ptr< ccHObject > cloudViewer::io::CreateEntityFromFile | ( | const std::string & | filename, |
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
Factory function to create a ccHObject from a file.
Definition at line 330 of file AutoIO.cpp.
| std::shared_ptr< geometry::Image > cloudViewer::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.
Definition at line 83 of file ImageIO.cpp.
References filename, image, and ReadImage().
Referenced by cloudViewer::visualization::rendering::FilamentResourceManager::CreateTexture(), LoadTextures(), main(), ReadTriangleMeshFromOBJ(), and cloudViewer::visualization::gui::UIImage::UIImage().
| std::shared_ptr< geometry::Image > cloudViewer::io::CreateImageFromMemory | ( | const std::string & | image_format, |
| const unsigned char * | image_data_ptr, | ||
| size_t | image_data_size | ||
| ) |
Factory function to create an image from memory.
Definition at line 90 of file ImageIO.cpp.
References image, image_format, and ReadImageFromMemory().
Referenced by LoadTextures().
| std::shared_ptr< pipelines::color_map::ImageWarpingField > cloudViewer::io::CreateImageWarpingFieldFromFile | ( | const std::string & | filename | ) |
Factory function to create a ImageWarpingField from a file Return an empty PinholeCameraTrajectory if fail to read the file.
Definition at line 55 of file ImageWarpingFieldIO.cpp.
References filename, and ReadImageWarpingField().
| std::shared_ptr< geometry::LineSet > cloudViewer::io::CreateLineSetFromFile | ( | const std::string & | filename, |
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
Factory function to create a lineset from a file.
Definition at line 111 of file LineSetIO.cpp.
Referenced by main().
| std::shared_ptr< ccMesh > cloudViewer::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.
Definition at line 192 of file TriangleMeshIO.cpp.
Referenced by main(), and cloudViewer::benchmarks::SamplePointsFixture::SetUp().
| std::shared_ptr< geometry::Octree > cloudViewer::io::CreateOctreeFromFile | ( | const std::string & | filename, |
| const std::string & | format = "auto" |
||
| ) |
Factory function to create a octree from a file.
Definition at line 33 of file OctreeIO.cpp.
References filename, octree, and WriteOctree().
| std::shared_ptr< camera::PinholeCameraTrajectory > cloudViewer::io::CreatePinholeCameraTrajectoryFromFile | ( | const std::string & | filename | ) |
Factory function to create a PinholeCameraTrajectory from a file (PinholeCameraTrajectoryFactory.cpp) Return an empty PinholeCameraTrajectory if fail to read the file.
Definition at line 55 of file PinholeCameraTrajectoryIO.cpp.
References filename, and ReadPinholeCameraTrajectory().
| std::shared_ptr< ccPointCloud > cloudViewer::io::CreatePointCloudFromFile | ( | const std::string & | filename, |
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
Factory function to create a pointcloud from a file (PointCloudFactory.cpp) Return an empty pointcloud if fail to read the file.
Definition at line 84 of file PointCloudIO.cpp.
Referenced by cloudViewer::pipelines::registration::BenchmarkCreateFromPointCloudBallPivoting(), convert(), cloudViewer::t::pipelines::slac::CreateTPCDFromFile(), cloudViewer::t::pipelines::registration::LegacyComputeFPFHFeature(), cloudViewer::t::geometry::LegacyUniformDownSample(), cloudViewer::t::geometry::LegacyVoxelDownSample(), and main().
| std::shared_ptr< ccPointCloud > cloudViewer::io::CreatePointCloudFromMemory | ( | const unsigned char * | buffer, |
| const size_t | length, | ||
| const std::string & | format, | ||
| bool | print_progress = false |
||
| ) |
Factory function to create a pointcloud from memory Return an empty pointcloud if fail to read from buffer.
Definition at line 93 of file PointCloudIO.cpp.
| std::shared_ptr< pipelines::registration::PoseGraph > cloudViewer::io::CreatePoseGraphFromFile | ( | const std::string & | filename | ) |
Factory function to create a PoseGraph from a file (PinholeCameraTrajectoryFactory.cpp) Return an empty PinholeCameraTrajectory if fail to read the file.
Definition at line 53 of file PoseGraphIO.cpp.
References filename, and ReadPoseGraph().
| std::shared_ptr< geometry::VoxelGrid > cloudViewer::io::CreateVoxelGridFromFile | ( | const std::string & | filename, |
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
Factory function to create a voxelgrid from a file.
Definition at line 132 of file VoxelGridIO.cpp.
Referenced by main().
| bool cloudViewer::io::IsPointInsidePolygon | ( | const Eigen::MatrixX2d & | polygon, |
| double | x, | ||
| double | y | ||
| ) |
Definition at line 288 of file TriangleMeshIO.cpp.
Referenced by AddTrianglesByEarClipping().
| void cloudViewer::io::LoadTextures | ( | const std::string & | filename, |
| const aiScene * | scene, | ||
| const aiMaterial * | mat, | ||
| TextureImages & | maps | ||
| ) |
Definition at line 61 of file FileASSIMP.cpp.
References cloudViewer::io::TextureImages::albedo, cloudViewer::io::TextureImages::ao, CreateImageFromFile(), CreateImageFromMemory(), filename, cloudViewer::utility::filesystem::GetFileNameWithoutDirectory(), cloudViewer::utility::filesystem::GetFileParentDirectory(), cloudViewer::io::TextureImages::gltf_rough_metal, image, LogWarning, cloudViewer::io::TextureImages::metallic, cloudViewer::io::TextureImages::normal, cloudViewer::t::geometry::path, cloudViewer::io::TextureImages::reflectance, cloudViewer::io::TextureImages::roughness, and type.
Referenced by ReadModelUsingAssimp(), and ReadTriangleMeshUsingASSIMP().
| bool cloudViewer::io::ReadEntity | ( | const std::string & | filename, |
| ccHObject & | obj, | ||
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
The general entrance for reading a ccHObject from a file The function calls read functions based on the extension name of filename.
Definition at line 338 of file AutoIO.cpp.
| bool cloudViewer::io::ReadFeature | ( | const std::string & | filename, |
| utility::Feature & | feature | ||
| ) |
The general entrance for reading a Feature from a file
Definition at line 57 of file FeatureIO.cpp.
References filename, and ReadFeatureFromBIN().
| bool cloudViewer::io::ReadFeatureFromBIN | ( | const std::string & | filename, |
| utility::Feature & | feature | ||
| ) |
Definition at line 66 of file FeatureIO.cpp.
References cloudViewer::utility::Feature::data_, filename, cloudViewer::utility::filesystem::FOpen(), LogWarning, and NULL.
Referenced by ReadFeature().
| FileGeometry cloudViewer::io::ReadFileGeometryType | ( | const std::string & | path | ) |
Returns the kind of geometry that the file contains. This is a quick function designed to query the file in order to determine whether to call ReadTriangleMesh(), ReadLineSet(), or ReadPointCloud()
Definition at line 31 of file FileFormatIO.cpp.
References CONTENTS_UNKNOWN, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), gExt2Func, and cloudViewer::t::geometry::path.
Referenced by cloudViewer::visualization::GuiVisualizer::LoadGeometry().
| FileGeometry cloudViewer::io::ReadFileGeometryTypeFBX | ( | const std::string & | path | ) |
Definition at line 561 of file TriangleMeshIO.cpp.
References CONTAINS_POINTS, and CONTAINS_TRIANGLES.
| FileGeometry cloudViewer::io::ReadFileGeometryTypeGLTF | ( | const std::string & | path | ) |
Definition at line 1352 of file TriangleMeshIO.cpp.
References CONTAINS_POINTS, and CONTAINS_TRIANGLES.
| FileGeometry cloudViewer::io::ReadFileGeometryTypeOBJ | ( | const std::string & | path | ) |
Definition at line 724 of file TriangleMeshIO.cpp.
References CONTAINS_POINTS, and CONTAINS_TRIANGLES.
| FileGeometry cloudViewer::io::ReadFileGeometryTypeOFF | ( | const std::string & | path | ) |
Definition at line 1096 of file TriangleMeshIO.cpp.
References CONTAINS_POINTS, and CONTAINS_TRIANGLES.
| FileGeometry cloudViewer::io::ReadFileGeometryTypePCD | ( | const std::string & | path | ) |
Definition at line 1037 of file FileIOFactory.cpp.
References CONTAINS_POINTS.
| FileGeometry cloudViewer::io::ReadFileGeometryTypePLY | ( | const std::string & | path | ) |
Definition at line 1416 of file FileIOFactory.cpp.
References CONTAINS_LINES, CONTAINS_POINTS, CONTAINS_TRIANGLES, CONTENTS_UNKNOWN, NULL, and cloudViewer::t::geometry::path.
| FileGeometry cloudViewer::io::ReadFileGeometryTypePTS | ( | const std::string & | path | ) |
Definition at line 1599 of file FileIOFactory.cpp.
References CONTAINS_POINTS.
| FileGeometry cloudViewer::io::ReadFileGeometryTypeSTL | ( | const std::string & | path | ) |
Definition at line 565 of file TriangleMeshIO.cpp.
References CONTAINS_POINTS, and CONTAINS_TRIANGLES.
| FileGeometry cloudViewer::io::ReadFileGeometryTypeXYZ | ( | const std::string & | path | ) |
Definition at line 1109 of file FileIOFactory.cpp.
References CONTAINS_POINTS.
| FileGeometry cloudViewer::io::ReadFileGeometryTypeXYZN | ( | const std::string & | path | ) |
Definition at line 1249 of file FileIOFactory.cpp.
References CONTAINS_POINTS.
| FileGeometry cloudViewer::io::ReadFileGeometryTypeXYZRGB | ( | const std::string & | path | ) |
Definition at line 1333 of file FileIOFactory.cpp.
References CONTAINS_POINTS.
| bool cloudViewer::io::ReadIJsonConvertible | ( | const std::string & | filename, |
| cloudViewer::utility::IJsonConvertible & | object | ||
| ) |
The general entrance for reading an IJsonConvertible from a file The function calls read functions based on the extension name of filename.
Definition at line 122 of file IJsonConvertibleIO.cpp.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
Referenced by cloudViewer::VisualizerForAlignment::KeyPressCallback(), cloudViewer::VisualizerForAlignment::LoadSessionFromFile(), cloudViewer::visualization::ViewControlWithCustomAnimation::LoadTrajectoryFromJsonFile(), main(), ReadOctreeFromJson(), and ReadPinholeCameraTrajectoryFromJSON().
| bool cloudViewer::io::ReadIJsonConvertibleFromJSON | ( | const std::string & | filename, |
| cloudViewer::utility::IJsonConvertible & | object | ||
| ) |
Definition at line 78 of file IJsonConvertibleIO.cpp.
References filename, and LogWarning.
| bool cloudViewer::io::ReadIJsonConvertibleFromJSONString | ( | const std::string & | json_string, |
| cloudViewer::utility::IJsonConvertible & | object | ||
| ) |
Definition at line 106 of file IJsonConvertibleIO.cpp.
Referenced by cloudViewer::visualization::Visualizer::CopyViewStatusFromClipboard().
| bool cloudViewer::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.
Definition at line 99 of file ImageIO.cpp.
References filename, image, and LogWarning.
Referenced by CreateImageFromFile().
| bool cloudViewer::io::ReadImageFromJPG | ( | const std::string & | filename, |
| geometry::Image & | image | ||
| ) |
Definition at line 248 of file ImageIO.cpp.
References filename, cloudViewer::utility::filesystem::FOpen(), image, LogWarning, NULL, and TRUE.
| bool cloudViewer::io::ReadImageFromMemory | ( | const std::string & | image_format, |
| const unsigned char * | image_data_ptr, | ||
| size_t | image_data_size, | ||
| geometry::Image & | image | ||
| ) |
The general entrance for reading an Image from memory The function calls read functions based on format of image.
| image_format | the format of image, "png" or "jpg". |
| image_data_ptr | the pointer to image data in memory. |
| image_data_size | the size of image data in memory. |
Definition at line 123 of file ImageIO.cpp.
References format, image, image_format, LogWarning, ReadJPGFromMemory(), and ReadPNGFromMemory().
Referenced by CreateImageFromMemory().
| bool cloudViewer::io::ReadImageFromPNG | ( | const std::string & | filename, |
| geometry::Image & | image | ||
| ) |
Definition at line 158 of file ImageIO.cpp.
References filename, image, LogWarning, and NULL.
| bool cloudViewer::io::ReadImageWarpingField | ( | const std::string & | filename, |
| pipelines::color_map::ImageWarpingField & | warping_field | ||
| ) |
The general entrance for reading a ImageWarpingField from a file
Definition at line 62 of file ImageWarpingFieldIO.cpp.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
Referenced by CreateImageWarpingFieldFromFile().
| bool cloudViewer::io::ReadJPGFromMemory | ( | const unsigned char * | image_data_ptr, |
| size_t | image_data_size, | ||
| geometry::Image & | image | ||
| ) |
Read a JPG image from memory.
| image_data_ptr | the pointer to image data in memory. |
| image_data_size | the size of image data in memory. |
Definition at line 317 of file ImageIO.cpp.
References image, LogWarning, and TRUE.
Referenced by ReadImageFromMemory().
| bool cloudViewer::io::ReadLineSet | ( | const std::string & | filename, |
| geometry::LineSet & | lineset, | ||
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
The general entrance for reading a LineSet from a file The function calls read functions based on the extension name of filename.
Definition at line 120 of file LineSetIO.cpp.
| bool cloudViewer::io::ReadLineSetFromPLY | ( | const std::string & | filename, |
| geometry::LineSet & | lineset, | ||
| bool | print_progress = false |
||
| ) |
Definition at line 173 of file LineSetIO.cpp.
| bool cloudViewer::io::ReadModelUsingAssimp | ( | const std::string & | filename, |
| visualization::rendering::TriangleMeshModel & | model, | ||
| const ReadTriangleModelOptions & | params | ||
| ) |
Definition at line 312 of file FileASSIMP.cpp.
References ccPointCloud::addEigenColor(), ccPointCloud::addEigenNorm(), cloudViewer::PointCloudTpl< T >::addEigenPoint(), AI_MATKEY_ANISOTROPY, AI_MATKEY_CLEARCOAT_THICKNESS, AI_MATKEY_SHEEN, cloudViewer::io::TextureImages::albedo, cloudViewer::visualization::rendering::MaterialRecord::albedo_img, cloudViewer::io::TextureImages::ao, cloudViewer::visualization::rendering::MaterialRecord::ao_img, cloudViewer::visualization::rendering::MaterialRecord::ao_rough_metal_img, cloudViewer::visualization::rendering::MaterialRecord::base_anisotropy, cloudViewer::visualization::rendering::MaterialRecord::base_clearcoat, cloudViewer::visualization::rendering::MaterialRecord::base_clearcoat_roughness, cloudViewer::visualization::rendering::MaterialRecord::base_color, cloudViewer::visualization::rendering::MaterialRecord::base_metallic, cloudViewer::visualization::rendering::MaterialRecord::base_reflectance, cloudViewer::visualization::rendering::MaterialRecord::base_roughness, color, cloudViewer::visualization::rendering::MaterialRecord::emissive_color, face, filename, cloudViewer::io::TextureImages::gltf_rough_metal, cloudViewer::visualization::rendering::MaterialRecord::has_alpha, kPostProcessFlags_fast, LoadTextures(), LogError, LogInfo, LogWarning, cloudViewer::visualization::rendering::TriangleMeshModel::materials_, cloudViewer::visualization::rendering::TriangleMeshModel::meshes_, cloudViewer::io::TextureImages::metallic, cloudViewer::visualization::rendering::MaterialRecord::metallic_img, cloudViewer::visualization::rendering::MaterialRecord::name, cloudViewer::io::TextureImages::normal, normal, cloudViewer::visualization::rendering::MaterialRecord::normal_img, normals, cloudViewer::io::TextureImages::reflectance, cloudViewer::visualization::rendering::MaterialRecord::reflectance_img, ccPointCloud::reserveTheNormsTable(), ccPointCloud::reserveThePointsTable(), ccPointCloud::reserveTheRGBTable(), cloudViewer::io::TextureImages::roughness, cloudViewer::visualization::rendering::MaterialRecord::roughness_img, scaling, ccObject::setEnabled(), ccObject::setLocked(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::visualization::rendering::MaterialRecord::shader, ccPointCloud::shrinkToFit(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::ReadTriangleModelOptions::update_progress.
Referenced by ReadTriangleModel().
| bool cloudViewer::io::ReadOctree | ( | const std::string & | filename, |
| geometry::Octree & | octree, | ||
| const std::string & | format = "auto" |
||
| ) |
The general entrance for reading a Octree from a file The function calls read functions based on the extension name of filename.
Definition at line 40 of file OctreeIO.cpp.
References file_extension_to_octree_read_function, filename, format, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), LogDebug, LogWarning, and octree.
| bool cloudViewer::io::ReadOctreeFromJson | ( | const std::string & | filename, |
| geometry::Octree & | octree | ||
| ) |
Definition at line 85 of file OctreeIO.cpp.
References filename, octree, and ReadIJsonConvertible().
| bool cloudViewer::io::ReadPinholeCameraTrajectory | ( | const std::string & | filename, |
| camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
The general entrance for reading a PinholeCameraTrajectory from a file The function calls read functions based on the extension name of filename.
Definition at line 61 of file PinholeCameraTrajectoryIO.cpp.
References file_extension_to_trajectory_read_function, filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
Referenced by CreatePinholeCameraTrajectoryFromFile().
| bool cloudViewer::io::ReadPinholeCameraTrajectoryFromJSON | ( | const std::string & | filename, |
| camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
Definition at line 21 of file PinholeCameraTrajectoryIO.cpp.
References filename, and ReadIJsonConvertible().
| bool cloudViewer::io::ReadPinholeCameraTrajectoryFromLOG | ( | const std::string & | filename, |
| camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
Definition at line 171 of file PinholeCameraTrajectoryIO.cpp.
References DEFAULT_IO_BUFFER_SIZE, filename, cloudViewer::utility::filesystem::FOpen(), LogWarning, NULL, cloudViewer::camera::PinholeCameraTrajectory::parameters_, and cloudViewer::camera::PrimeSenseDefault.
| bool cloudViewer::io::ReadPinholeCameraTrajectoryFromTUM | ( | const std::string & | filename, |
| camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
Definition at line 104 of file PinholeCameraTrajectoryIO.cpp.
References DEFAULT_IO_BUFFER_SIZE, filename, cloudViewer::utility::filesystem::FOpen(), LogWarning, NULL, cloudViewer::camera::PinholeCameraTrajectory::parameters_, cloudViewer::camera::PrimeSenseDefault, x, y, and z.
| bool cloudViewer::io::ReadPNGFromMemory | ( | const unsigned char * | image_data_ptr, |
| size_t | image_data_size, | ||
| geometry::Image & | image | ||
| ) |
Read a PNG image from memory.
| image_data_ptr | the pointer to image data in memory. |
| image_data_size | the size of image data in memory. |
Definition at line 187 of file ImageIO.cpp.
References image, LogWarning, and NULL.
Referenced by ReadImageFromMemory().
| bool cloudViewer::io::ReadPointCloud | ( | const std::string & | filename, |
| ccPointCloud & | 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.
Definition at line 104 of file PointCloudIO.cpp.
References file_extension_to_pointcloud_read_function, filename, format, cloudViewer::io::ReadPointCloudOption::format, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), LogDebug, LogWarning, cloudViewer::io::ReadPointCloudOption::remove_infinite_points, cloudViewer::io::ReadPointCloudOption::remove_nan_points, ccPointCloud::RemoveNonFinitePoints(), and cloudViewer::PointCloudTpl< T >::size().
Referenced by cloudViewer::t::geometry::IOReadLegacyPointCloud(), cloudViewer::t::geometry::IOWriteLegacyPointCloud(), cloudViewer::t::geometry::LegacyCropByAxisAlignedBox(), cloudViewer::t::geometry::LegacyCropByOrientedBox(), cloudViewer::t::geometry::LegacyEstimateNormals(), cloudViewer::t::geometry::LegacyRemoveRadiusOutliers(), cloudViewer::t::geometry::LegacyRemoveStatisticalOutliers(), cloudViewer::t::geometry::LegacySelectByIndex(), cloudViewer::t::geometry::LegacyTransform(), cloudViewer::visualization::GuiVisualizer::LoadGeometry(), and cloudViewer::pipelines::registration::LoadPointCloud().
| bool cloudViewer::io::ReadPointCloud | ( | const std::string & | filename, |
| ccPointCloud & | pointcloud, | ||
| const std::string & | file_format, | ||
| bool | remove_nan_points, | ||
| bool | remove_infinite_points, | ||
| bool | print_progress | ||
| ) |
Definition at line 134 of file PointCloudIO.cpp.
| bool cloudViewer::io::ReadPointCloud | ( | const unsigned char * | buffer, |
| const size_t | length, | ||
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params = {} |
||
| ) |
The general entrance for reading a PointCloud from memory The function calls read functions based on the format. See ReadPointCloudOption for additional options you can pass.
Definition at line 158 of file PointCloudIO.cpp.
References format, cloudViewer::io::ReadPointCloudOption::format, in_memory_to_pointcloud_read_function, LogDebug, LogWarning, cloudViewer::io::ReadPointCloudOption::remove_infinite_points, cloudViewer::io::ReadPointCloudOption::remove_nan_points, ccPointCloud::RemoveNonFinitePoints(), and cloudViewer::PointCloudTpl< T >::size().
| bool cloudViewer::io::ReadPointCloudFromPCD | ( | const std::string & | filename, |
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 1041 of file FileIOFactory.cpp.
References filename, cloudViewer::utility::filesystem::FOpen(), LogDebug, LogWarning, NULL, cloudViewer::t::io::ReadPCDData(), and cloudViewer::t::io::ReadPCDHeader().
Referenced by PcdFilter::loadFile().
| bool cloudViewer::io::ReadPointCloudFromPLY | ( | const std::string & | filename, |
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 1449 of file FileIOFactory.cpp.
References ccPointCloud::clear(), filename, cloudViewer::utility::CountingProgressReporter::Finish(), LogWarning, NULL, ccPointCloud::reserveTheNormsTable(), ccPointCloud::resize(), ccPointCloud::resizeTheRGBTable(), cloudViewer::utility::CountingProgressReporter::SetTotal(), and cloudViewer::io::ReadPointCloudOption::update_progress.
| bool cloudViewer::io::ReadPointCloudFromPTS | ( | const std::string & | filename, |
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 1603 of file FileIOFactory.cpp.
References ccPointCloud::clear(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadLine(), ccPointCloud::resize(), ccPointCloud::resizeTheRGBTable(), cloudViewer::PointCloudTpl< T >::setPoint(), ccPointCloud::setPointColor(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::SplitString(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::ReadPointCloudOption::update_progress, x, y, and z.
| bool cloudViewer::io::ReadPointCloudFromXYZ | ( | const std::string & | filename, |
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 1113 of file FileIOFactory.cpp.
References cloudViewer::PointCloudTpl< T >::addEigenPoint(), ccPointCloud::clear(), cloudViewer::utility::filesystem::CFile::CurPos(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::utility::filesystem::CFile::GetFileSize(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadLine(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::ReadPointCloudOption::update_progress, x, y, and z.
| bool cloudViewer::io::ReadPointCloudFromXYZN | ( | const std::string & | filename, |
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 1253 of file FileIOFactory.cpp.
References ccPointCloud::addEigenNorm(), cloudViewer::PointCloudTpl< T >::addEigenPoint(), ccPointCloud::clear(), cloudViewer::utility::filesystem::CFile::CurPos(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::utility::filesystem::CFile::GetFileSize(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadLine(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::ReadPointCloudOption::update_progress, x, y, and z.
| bool cloudViewer::io::ReadPointCloudFromXYZRGB | ( | const std::string & | filename, |
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 1337 of file FileIOFactory.cpp.
References ccPointCloud::addEigenColor(), cloudViewer::PointCloudTpl< T >::addEigenPoint(), ccPointCloud::clear(), cloudViewer::utility::filesystem::CFile::CurPos(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::utility::filesystem::CFile::GetFileSize(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::filesystem::CFile::ReadLine(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::ReadPointCloudOption::update_progress, x, y, and z.
| bool cloudViewer::io::ReadPointCloudInMemoryFromXYZ | ( | const unsigned char * | buffer, |
| const size_t | length, | ||
| ccPointCloud & | pointcloud, | ||
| const ReadPointCloudOption & | params | ||
| ) |
Definition at line 1147 of file FileIOFactory.cpp.
References cloudViewer::PointCloudTpl< T >::addEigenPoint(), ccPointCloud::clear(), e, cloudViewer::utility::CountingProgressReporter::Finish(), LogWarning, cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::ReadPointCloudOption::update_progress, x, y, and z.
| bool cloudViewer::io::ReadPoseGraph | ( | const std::string & | filename, |
| pipelines::registration::PoseGraph & | pose_graph | ||
| ) |
The general entrance for reading a PoseGraph from a file. The function calls read functions based on the extension name of filename.
Definition at line 60 of file PoseGraphIO.cpp.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
Referenced by CreatePoseGraphFromFile().
| bool cloudViewer::io::ReadTriangleMesh | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| ReadTriangleMeshOptions | params = {} |
||
| ) |
The general entrance for reading a TriangleMesh from a file The function calls read functions based on the extension name of filename.
Definition at line 206 of file TriangleMeshIO.cpp.
References cloudViewer::t::io::file_extension_to_trianglemesh_read_function, filename, ccMesh::getAssociatedCloud(), cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), ccMesh::getVerticeSize(), cloudViewer::GenericMesh::hasTriangles(), ccMesh::HasVertices(), LogDebug, LogError, LogWarning, cloudViewer::io::ReadTriangleMeshOptions::print_progress, ccMesh::size(), cloudViewer::utility::ToUpper(), and cloudViewer::io::ReadTriangleMeshOptions::update_progress.
Referenced by cloudViewer::t::geometry::IOReadLegacyTriangleMesh(), main(), and cloudViewer::t::io::ReadTriangleMesh().
| bool cloudViewer::io::ReadTriangleMeshFromGLTF | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| const ReadTriangleMeshOptions & | params | ||
| ) |
Definition at line 1356 of file TriangleMeshIO.cpp.
References ccHObject::addChild(), ccPointCloud::addEigenNorm(), cloudViewer::PointCloudTpl< T >::addEigenPoint(), ccPointCloud::addRGBColor(), ccMesh::addTriangle(), ccMesh::clear(), colors, count, filename, ecvColor::RgbTpl< Type >::FromEigen(), cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), LogInfo, LogWarning, normals, ccObject::setEnabled(), ccMesh::Transform(), and ccMesh::Translate().
| bool cloudViewer::io::ReadTriangleMeshFromOBJ | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| const ReadTriangleMeshOptions & | |||
| ) |
Definition at line 728 of file TriangleMeshIO.cpp.
References a, ccPointCloud::addEigenColor(), cloudViewer::PointCloudTpl< T >::addEigenPoint(), ccMesh::addTriangle(), ccMesh::clear(), CreateImageFromFile(), filename, ccMesh::getAssociatedCloud(), cloudViewer::utility::filesystem::GetFileParentDirectory(), image, LogWarning, ccMesh::materials_, ccPointCloud::reserveThePointsTable(), ccPointCloud::reserveTheRGBTable(), ccPointCloud::resizeTheNormsTable(), ccPointCloud::setPointNormal(), ccDrawableObject::showColors(), cloudViewer::PointCloudTpl< T >::size(), ccMesh::size(), ccMesh::textures_, ccHObjectCaster::ToPointCloud(), ccMesh::triangle_material_ids_, ccMesh::triangle_uvs_, and ccPointCloud::unallocateNorms().
| bool cloudViewer::io::ReadTriangleMeshFromOFF | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| const ReadTriangleMeshOptions & | params | ||
| ) |
Definition at line 1100 of file TriangleMeshIO.cpp.
References filename.
| bool cloudViewer::io::ReadTriangleMeshFromPLY | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| const ReadTriangleMeshOptions & | params | ||
| ) |
Definition at line 382 of file TriangleMeshIO.cpp.
References ccMesh::clear(), filename, ccMesh::getAssociatedCloud(), LogWarning, ccPointCloud::resize(), ccPointCloud::resizeTheNormsTable(), ccPointCloud::resizeTheRGBTable(), cloudViewer::utility::CountingProgressReporter::SetTotal(), ccHObjectCaster::ToPointCloud(), and cloudViewer::io::ReadTriangleMeshOptions::update_progress.
| bool cloudViewer::io::ReadTriangleMeshFromSTL | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| bool | print_progress | ||
| ) |
Definition at line 569 of file TriangleMeshIO.cpp.
| bool cloudViewer::io::ReadTriangleMeshUsingASSIMP | ( | const std::string & | filename, |
| ccMesh & | mesh, | ||
| const ReadTriangleMeshOptions & | params | ||
| ) |
Definition at line 163 of file FileASSIMP.cpp.
References ccMesh::addTriangle(), ccMesh::addVertexColor(), ccMesh::addVertexNormal(), ccMesh::addVertice(), AI_MATKEY_ANISOTROPY, AI_MATKEY_CLEARCOAT_ROUGHNESS, AI_MATKEY_CLEARCOAT_THICKNESS, AI_MATKEY_SHEEN, cloudViewer::io::TextureImages::albedo, cloudViewer::io::TextureImages::ao, ccMesh::clear(), color, cloudViewer::io::ReadTriangleMeshOptions::enable_post_processing, face, filename, ccMesh::getAssociatedCloud(), kPostProcessFlags_compulsory, kPostProcessFlags_fast, LoadTextures(), LogInfo, LogWarning, ccMesh::materials_, cloudViewer::io::TextureImages::metallic, cloudViewer::io::TextureImages::normal, normal, cloudViewer::io::TextureImages::reflectance, ccMesh::reserveAssociatedCloud(), cloudViewer::io::TextureImages::roughness, ccMesh::textures_, ccMesh::triangle_material_ids_, and ccMesh::triangle_uvs_.
| bool cloudViewer::io::ReadTriangleModel | ( | const std::string & | filename, |
| visualization::rendering::TriangleMeshModel & | model, | ||
| ReadTriangleModelOptions | params | ||
| ) |
Definition at line 22 of file ModelIO.cpp.
References filename, cloudViewer::io::ReadTriangleModelOptions::print_progress, ReadModelUsingAssimp(), and cloudViewer::io::ReadTriangleModelOptions::update_progress.
Referenced by cloudViewer::visualization::GuiVisualizer::LoadGeometry().
| bool cloudViewer::io::ReadVoxelGrid | ( | const std::string & | filename, |
| geometry::VoxelGrid & | voxelgrid, | ||
| const std::string & | format = "auto", |
||
| bool | print_progress = false |
||
| ) |
The general entrance for reading a VoxelGrid from a file The function calls read functions based on the extension name of filename.
Definition at line 141 of file VoxelGridIO.cpp.
| bool cloudViewer::io::ReadVoxelGridFromPLY | ( | const std::string & | filename, |
| geometry::VoxelGrid & | voxelgrid, | ||
| bool | print_progress = false |
||
| ) |
Definition at line 195 of file VoxelGridIO.cpp.
|
static |
| bool cloudViewer::io::WriteEntity | ( | const std::string & | filename, |
| const ccHObject & | obj, | ||
| bool | write_ascii = false, |
||
| bool | compressed = false, |
||
| bool | print_progress = false |
||
| ) |
The general entrance for writing a ccHObject 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.
Definition at line 373 of file AutoIO.cpp.
| bool cloudViewer::io::WriteFeature | ( | const std::string & | filename, |
| const utility::Feature & | feature | ||
| ) |
The general entrance for writing a Feature to a file
Definition at line 61 of file FeatureIO.cpp.
References filename, and WriteFeatureToBIN().
| bool cloudViewer::io::WriteFeatureToBIN | ( | const std::string & | filename, |
| const utility::Feature & | feature | ||
| ) |
Definition at line 79 of file FeatureIO.cpp.
References cloudViewer::utility::Feature::data_, filename, cloudViewer::utility::filesystem::FOpen(), LogWarning, and NULL.
Referenced by WriteFeature().
| bool cloudViewer::io::WriteIJsonConvertible | ( | const std::string & | filename, |
| const cloudViewer::utility::IJsonConvertible & | object | ||
| ) |
The general entrance for writing an IJsonConvertible to a file The function calls write functions based on the extension name of filename.
Definition at line 144 of file IJsonConvertibleIO.cpp.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
Referenced by cloudViewer::visualization::Visualizer::CaptureDepthImage(), cloudViewer::visualization::Visualizer::CaptureDepthPointCloud(), cloudViewer::visualization::Visualizer::CaptureRenderOption(), cloudViewer::visualization::Visualizer::CaptureScreenImage(), cloudViewer::visualization::ViewControlWithCustomAnimation::CaptureTrajectory(), main(), cloudViewer::visualization::VisualizerWithCustomAnimation::Play(), cloudViewer::visualization::VisualizerWithEditing::SaveCroppingResult(), and cloudViewer::VisualizerForAlignment::SaveSessionToFile().
| bool cloudViewer::io::WriteIJsonConvertibleToJSON | ( | const std::string & | filename, |
| const cloudViewer::utility::IJsonConvertible & | object | ||
| ) |
Definition at line 92 of file IJsonConvertibleIO.cpp.
References filename, and LogWarning.
Referenced by cloudViewer::t::io::RGBDVideoReader::SaveFrames(), WriteOctreeToJson(), and WritePinholeCameraTrajectoryToJSON().
| bool cloudViewer::io::WriteIJsonConvertibleToJSONString | ( | std::string & | json_string, |
| const cloudViewer::utility::IJsonConvertible & | object | ||
| ) |
Definition at line 113 of file IJsonConvertibleIO.cpp.
Referenced by cloudViewer::visualization::Visualizer::CopyViewStatusToClipboard().
| bool cloudViewer::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.
| 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). |
Definition at line 139 of file ImageIO.cpp.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), image, and LogWarning.
Referenced by cloudViewer::visualization::Visualizer::CaptureDepthImage(), cloudViewer::visualization::Visualizer::CaptureScreenImage(), cloudViewer::visualization::GuiVisualizer::ExportCurrentImage(), cloudViewer::visualization::visualizer::O3DVisualizer::Impl::ExportCurrentImage(), cloudViewer::pipelines::color_map::RunNonRigidOptimizer(), and cloudViewer::pipelines::color_map::RunRigidOptimizer().
| bool cloudViewer::io::WriteImageToJPG | ( | const std::string & | filename, |
| const geometry::Image & | image, | ||
| int | quality = kCloudViewerImageIODefaultQuality |
||
| ) |
Definition at line 377 of file ImageIO.cpp.
References filename, cloudViewer::utility::filesystem::FOpen(), image, kCloudViewerImageIODefaultQuality, LogWarning, NULL, and TRUE.
| bool cloudViewer::io::WriteImageToPNG | ( | const std::string & | filename, |
| const geometry::Image & | image, | ||
| int | quality = kCloudViewerImageIODefaultQuality |
||
| ) |
Definition at line 219 of file ImageIO.cpp.
References filename, image, kCloudViewerImageIODefaultQuality, LogWarning, NULL, and cloudViewer::t::io::SetPNGImageFromImage().
| bool cloudViewer::io::WriteImageWarpingField | ( | const std::string & | filename, |
| const pipelines::color_map::ImageWarpingField & | warping_field | ||
| ) |
The general entrance for writing a ImageWarpingField to a file
Definition at line 86 of file ImageWarpingFieldIO.cpp.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
Referenced by cloudViewer::pipelines::color_map::RunNonRigidOptimizer().
| bool cloudViewer::io::WriteLineSet | ( | const std::string & | filename, |
| const geometry::LineSet & | lineset, | ||
| bool | write_ascii = false, |
||
| bool | compressed = false, |
||
| bool | print_progress = false |
||
| ) |
The general entrance for writing a LineSet 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.
Definition at line 148 of file LineSetIO.cpp.
| bool cloudViewer::io::WriteLineSetToPLY | ( | const std::string & | filename, |
| const geometry::LineSet & | lineset, | ||
| bool | write_ascii = false, |
||
| bool | compressed = false, |
||
| bool | print_progress = false |
||
| ) |
Definition at line 242 of file LineSetIO.cpp.
| bool cloudViewer::io::WriteOctree | ( | const std::string & | filename, |
| const geometry::Octree & | octree | ||
| ) |
The general entrance for writing a Octree 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.
Definition at line 66 of file OctreeIO.cpp.
References file_extension_to_octree_write_function, filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), LogDebug, LogWarning, and octree.
Referenced by CreateOctreeFromFile().
| bool cloudViewer::io::WriteOctreeToJson | ( | const std::string & | filename, |
| const geometry::Octree & | octree | ||
| ) |
Definition at line 89 of file OctreeIO.cpp.
References filename, octree, and WriteIJsonConvertibleToJSON().
| bool cloudViewer::io::WritePinholeCameraTrajectory | ( | const std::string & | filename, |
| const camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
The general entrance for writing a PinholeCameraTrajectory to a file The function calls write functions based on the extension name of filename.
Definition at line 82 of file PinholeCameraTrajectoryIO.cpp.
References file_extension_to_trajectory_write_function, filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
Referenced by cloudViewer::pipelines::color_map::RunNonRigidOptimizer(), and cloudViewer::pipelines::color_map::RunRigidOptimizer().
| bool cloudViewer::io::WritePinholeCameraTrajectoryToJSON | ( | const std::string & | filename, |
| const camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
Definition at line 27 of file PinholeCameraTrajectoryIO.cpp.
References filename, and WriteIJsonConvertibleToJSON().
| bool cloudViewer::io::WritePinholeCameraTrajectoryToLOG | ( | const std::string & | filename, |
| const camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
Definition at line 242 of file PinholeCameraTrajectoryIO.cpp.
References filename, cloudViewer::utility::filesystem::FOpen(), LogWarning, NULL, and cloudViewer::camera::PinholeCameraTrajectory::parameters_.
| bool cloudViewer::io::WritePinholeCameraTrajectoryToTUM | ( | const std::string & | filename, |
| const camera::PinholeCameraTrajectory & | trajectory | ||
| ) |
Definition at line 148 of file PinholeCameraTrajectoryIO.cpp.
References filename, cloudViewer::utility::filesystem::FOpen(), LogWarning, NULL, and cloudViewer::camera::PinholeCameraTrajectory::parameters_.
| bool cloudViewer::io::WritePointCloud | ( | const std::string & | filename, |
| const ccPointCloud & | pointcloud, | ||
| const std::string & | file_format, | ||
| bool | write_ascii, | ||
| bool | compressed, | ||
| bool | print_progress | ||
| ) |
Definition at line 212 of file PointCloudIO.cpp.
| bool cloudViewer::io::WritePointCloud | ( | const std::string & | filename, |
| const ccPointCloud & | 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.
Definition at line 191 of file PointCloudIO.cpp.
References file_extension_to_pointcloud_write_function, filename, format, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), LogDebug, LogWarning, and cloudViewer::PointCloudTpl< T >::size().
Referenced by cloudViewer::visualization::Visualizer::CaptureDepthPointCloud(), convert(), cloudViewer::VisualizerForAlignment::EvaluateAlignmentAndSave(), cloudViewer::t::geometry::IOWriteLegacyPointCloud(), main(), cloudViewer::visualization::VisualizerWithEditing::SaveCroppingResult(), and cloudViewer::t::io::WritePointCloud().
| bool cloudViewer::io::WritePointCloud | ( | unsigned char *& | buffer, |
| size_t & | length, | ||
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params = {} |
||
| ) |
The general entrance for writing a PointCloud to memory The function calls write functions based on the format. WARNING: buffer gets initialized by WritePointCloud, you need to delete it when finished when ret is true See WritePointCloudOption for additional options you can pass.
Definition at line 234 of file PointCloudIO.cpp.
References format, cloudViewer::io::WritePointCloudOption::format, in_memory_to_pointcloud_write_function, LogDebug, LogWarning, and cloudViewer::PointCloudTpl< T >::size().
| bool cloudViewer::io::WritePointCloudInMemoryToXYZ | ( | unsigned char *& | buffer, |
| size_t & | length, | ||
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 1211 of file FileIOFactory.cpp.
References e, cloudViewer::utility::FastFormatString(), cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::PointCloudTpl< T >::getEigenPoint(), LogWarning, cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::PointCloudTpl< T >::size(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::io::WritePointCloudToPCD | ( | const std::string & | filename, |
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 1078 of file FileIOFactory.cpp.
References cloudViewer::io::WritePointCloudOption::compressed, filename, cloudViewer::utility::filesystem::FOpen(), cloudViewer::t::io::GenerateHeader(), LogWarning, NULL, cloudViewer::io::WritePointCloudOption::write_ascii, cloudViewer::t::io::WritePCDData(), and cloudViewer::t::io::WritePCDHeader().
| bool cloudViewer::io::WritePointCloudToPLY | ( | const std::string & | filename, |
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 1520 of file FileIOFactory.cpp.
References color, cloudViewer::utility::ColorToUint8(), filename, cloudViewer::utility::CountingProgressReporter::Finish(), ccPointCloud::getEigenColor(), ccPointCloud::getEigenNormal(), cloudViewer::PointCloudTpl< T >::getEigenPoint(), ccPointCloud::hasColors(), ccPointCloud::hasNormals(), ccPointCloud::IsEmpty(), LogWarning, normal, NULL, rgb, cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::PointCloudTpl< T >::size(), cloudViewer::utility::CountingProgressReporter::Update(), cloudViewer::io::WritePointCloudOption::update_progress, and cloudViewer::io::WritePointCloudOption::write_ascii.
| bool cloudViewer::io::WritePointCloudToPTS | ( | const std::string & | filename, |
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 1672 of file FileIOFactory.cpp.
References color, cloudViewer::utility::ColorToUint8(), e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), ccPointCloud::getEigenColor(), cloudViewer::PointCloudTpl< T >::getEigenPoint(), cloudViewer::utility::filesystem::CFile::GetFILE(), ccPointCloud::hasColors(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::PointCloudTpl< T >::size(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::io::WritePointCloudToXYZ | ( | const std::string & | filename, |
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 1178 of file FileIOFactory.cpp.
References e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), cloudViewer::PointCloudTpl< T >::getEigenPoint(), cloudViewer::utility::filesystem::CFile::GetFILE(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::PointCloudTpl< T >::size(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::io::WritePointCloudToXYZN | ( | const std::string & | filename, |
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 1289 of file FileIOFactory.cpp.
References e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), ccPointCloud::getEigenNormal(), cloudViewer::PointCloudTpl< T >::getEigenPoint(), cloudViewer::utility::filesystem::CFile::GetFILE(), ccPointCloud::hasNormals(), LogWarning, normal, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::PointCloudTpl< T >::size(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::io::WritePointCloudToXYZRGB | ( | const std::string & | filename, |
| const ccPointCloud & | pointcloud, | ||
| const WritePointCloudOption & | params | ||
| ) |
Definition at line 1373 of file FileIOFactory.cpp.
References color, e, filename, cloudViewer::utility::CountingProgressReporter::Finish(), ccPointCloud::getEigenColor(), cloudViewer::PointCloudTpl< T >::getEigenPoint(), cloudViewer::utility::filesystem::CFile::GetFILE(), ccPointCloud::hasColors(), LogWarning, cloudViewer::utility::filesystem::CFile::Open(), cloudViewer::utility::CountingProgressReporter::SetTotal(), cloudViewer::PointCloudTpl< T >::size(), cloudViewer::utility::CountingProgressReporter::Update(), and cloudViewer::io::WritePointCloudOption::update_progress.
| bool cloudViewer::io::WritePoseGraph | ( | const std::string & | filename, |
| const pipelines::registration::PoseGraph & | pose_graph | ||
| ) |
The general entrance for writing a PoseGraph to a file. The function calls write functions based on the extension name of filename.
Definition at line 81 of file PoseGraphIO.cpp.
References filename, cloudViewer::utility::filesystem::GetFileExtensionInLowerCase(), and LogWarning.
| bool cloudViewer::io::WriteTriangleMesh | ( | const std::string & | filename, |
| const ccMesh & | 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.
Definition at line 255 of file TriangleMeshIO.cpp.
Referenced by main(), cloudViewer::pipelines::color_map::RunNonRigidOptimizer(), cloudViewer::pipelines::color_map::RunRigidOptimizer(), and cloudViewer::visualization::VisualizerWithEditing::SaveCroppingResult().
| bool cloudViewer::io::WriteTriangleMeshToGLTF | ( | const std::string & | filename, |
| const ccMesh & | mesh, | ||
| bool | write_ascii, | ||
| bool | compressed, | ||
| bool | write_vertex_normals, | ||
| bool | write_vertex_colors, | ||
| bool | write_triangle_uvs, | ||
| bool | print_progress | ||
| ) |
Definition at line 1670 of file TriangleMeshIO.cpp.
| bool cloudViewer::io::WriteTriangleMeshToOBJ | ( | const std::string & | filename, |
| const ccMesh & | mesh, | ||
| bool | write_ascii, | ||
| bool | compressed, | ||
| bool | write_vertex_normals, | ||
| bool | write_vertex_colors, | ||
| bool | write_triangle_uvs, | ||
| bool | print_progress | ||
| ) |
Definition at line 923 of file TriangleMeshIO.cpp.
| bool cloudViewer::io::WriteTriangleMeshToOFF | ( | const std::string & | filename, |
| const ccMesh & | mesh, | ||
| bool | write_ascii, | ||
| bool | compressed, | ||
| bool | write_vertex_normals, | ||
| bool | write_vertex_colors, | ||
| bool | write_triangle_uvs, | ||
| bool | print_progress | ||
| ) |
Definition at line 1229 of file TriangleMeshIO.cpp.
| bool cloudViewer::io::WriteTriangleMeshToPLY | ( | const std::string & | filename, |
| const ccMesh & | mesh, | ||
| bool | write_ascii, | ||
| bool | compressed, | ||
| bool | write_vertex_normals, | ||
| bool | write_vertex_colors, | ||
| bool | write_triangle_uvs, | ||
| bool | print_progress | ||
| ) |
Definition at line 461 of file TriangleMeshIO.cpp.
| bool cloudViewer::io::WriteTriangleMeshToSTL | ( | const std::string & | filename, |
| const ccMesh & | mesh, | ||
| bool | write_ascii, | ||
| bool | compressed, | ||
| bool | write_vertex_normals, | ||
| bool | write_vertex_colors, | ||
| bool | write_triangle_uvs, | ||
| bool | print_progress | ||
| ) |
Definition at line 662 of file TriangleMeshIO.cpp.
| bool cloudViewer::io::WriteVoxelGrid | ( | const std::string & | filename, |
| const geometry::VoxelGrid & | voxelgrid, | ||
| bool | write_ascii = false, |
||
| bool | compressed = false, |
||
| bool | print_progress = false |
||
| ) |
The general entrance for writing a VoxelGrid 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.
Definition at line 169 of file VoxelGridIO.cpp.
| bool cloudViewer::io::WriteVoxelGridToPLY | ( | const std::string & | filename, |
| const geometry::VoxelGrid & | voxelgrid, | ||
| bool | write_ascii = false, |
||
| bool | compressed = false, |
||
| bool | print_progress = false |
||
| ) |
Definition at line 286 of file VoxelGridIO.cpp.
|
static |
Definition at line 39 of file AutoIO.cpp.
|
static |
Definition at line 56 of file AutoIO.cpp.
|
static |
Definition at line 22 of file OctreeIO.cpp.
Referenced by ReadOctree().
|
static |
Definition at line 29 of file OctreeIO.cpp.
Referenced by WriteOctree().
|
static |
Definition at line 33 of file PointCloudIO.cpp.
Referenced by ReadPointCloud().
|
static |
Definition at line 61 of file PointCloudIO.cpp.
Referenced by WritePointCloud().
|
static |
Definition at line 37 of file PinholeCameraTrajectoryIO.cpp.
Referenced by ReadPinholeCameraTrajectory().
|
static |
Definition at line 47 of file PinholeCameraTrajectoryIO.cpp.
Referenced by WritePinholeCameraTrajectory().
|
static |
Definition at line 16 of file FileFormatIO.cpp.
Referenced by ReadFileGeometryType().
|
static |
Definition at line 52 of file PointCloudIO.cpp.
Referenced by ReadPointCloud().
|
static |
Definition at line 80 of file PointCloudIO.cpp.
Referenced by WritePointCloud().
|
static |
Definition at line 35 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertFromNativeConfig().
|
static |
Definition at line 45 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertFromNativeConfig().
|
static |
Definition at line 54 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertFromNativeConfig().
|
static |
Definition at line 24 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertFromNativeConfig().
|
static |
Definition at line 61 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertFromNativeConfig().
|
constexpr |
Definition at line 47 of file ImageIO.h.
Referenced by WriteImageToJPG(), and WriteImageToPNG().
| const unsigned int cloudViewer::io::kPostProcessFlags_compulsory |
Definition at line 39 of file FileASSIMP.cpp.
Referenced by ReadTriangleMeshUsingASSIMP().
| const unsigned int cloudViewer::io::kPostProcessFlags_fast |
Definition at line 43 of file FileASSIMP.cpp.
Referenced by ReadModelUsingAssimp(), and ReadTriangleMeshUsingASSIMP().
|
static |
Definition at line 114 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::AzureKinectSensorConfig(), and cloudViewer::io::AzureKinectSensorConfig::IsValidConfig().
|
static |
Definition at line 80 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertToNativeConfig(), and cloudViewer::io::AzureKinectSensorConfig::IsValidConfig().
|
static |
Definition at line 90 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertToNativeConfig(), and cloudViewer::io::AzureKinectSensorConfig::IsValidConfig().
|
static |
Definition at line 99 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertToNativeConfig(), and cloudViewer::io::AzureKinectSensorConfig::IsValidConfig().
|
static |
Definition at line 106 of file AzureKinectSensorConfig.cpp.
Referenced by cloudViewer::io::AzureKinectSensorConfig::ConvertToNativeConfig(), and cloudViewer::io::AzureKinectSensorConfig::IsValidConfig().