 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
25 class PinholeCameraTrajectory;
79 const std::string& image_path,
80 const std::string& output_path,
81 const std::vector<image_t>& image_ids = std::vector<image_t>());
86 bool Texturing(
const image_t image_id, std::size_t index);
89 int GetWorkspaceImageIdx(
const image_t image_id)
const;
92 bool IsPointVisible(
const Eigen::Vector3d& point3d,
95 int workspace_image_idx)
const;
98 float ComputeViewQuality(
const Eigen::Vector3d& point3d,
99 const Eigen::Vector3d& face_normal,
102 int workspace_image_idx)
const;
105 std::shared_ptr<cloudViewer::camera::PinholeCameraTrajectory>
106 FilterCameraTrajectory(
ccMesh* mesh)
const;
109 const std::string image_path_;
110 const std::string output_path_;
111 const std::vector<image_t> image_ids_;
113 std::unique_ptr<mvs::Workspace> workspace_;
114 std::vector<std::string> image_names_;
115 std::shared_ptr<cloudViewer::camera::PinholeCameraTrajectory>
bool use_depth_normal_maps
Definition: texturing_controller.h:45
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
std::string stereo_folder
Definition: workspace.h:40
void PrintHeading1(const std::string &heading)
Definition: misc.cc:225
uint32_t image_t
Definition: types.h:61
double FocalLengthY() const
Definition: camera.cc:121
TexturingReconstruction(const TexturingOptions &options, const Reconstruction &reconstruction, const std::string &image_path, const std::string &output_path, const std::vector< image_t > &image_ids=std::vector< image_t >())
Definition: texturing_controller.cc:37
void CreateDirIfNotExists(const std::string &path)
Definition: misc.cc:112
Type x
Definition: CVGeom.h:137
virtual unsigned size() const =0
Returns the number of points.
Matrix< double, 3, 4 > Matrix3x4d
Definition: types.h:39
double PrincipalPointX() const
Definition: camera.cc:146
const Timer & GetTimer() const
Definition: threading.cc:154
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
bool ExistsFile(const std::string &path)
Definition: misc.cc:100
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
std::string JoinPaths(T const &... paths)
Definition: misc.h:128
bool isShifted() const
Returns whether the cloud is shifted or not.
Definition: ecvShiftedObject.h:56
std::string ModelName() const
Definition: camera.cc:49
const CCVector3 & getPointNormal(unsigned pointIndex) const override
Returns normal corresponding to a given point.
Definition: ecvPointCloud.cpp:1555
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
Definition: texturing_controller.h:34
Definition: threading.h:74
Definition: texturing_controller.h:74
bool AutoReadMesh(const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions ¶ms={})
Definition: AutoIO.cpp:306
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
static Eigen::Matrix< double, 4, 4 > ToEigenMatrix4(const ccGLMatrixTpl< float > &mat)
Definition: ecvGLMatrixTpl.h:67
double PrincipalPointY() const
Definition: camera.cc:152
bool print_progress
Definition: AutoIO.h:30
bool image_as_rgb
Definition: workspace.h:34
ccGenericPointCloud * getAssociatedCloud() const override
Returns the vertices cloud.
Definition: ecvMesh.h:143
Definition: reconstruction.h:40
double max_depth_error
Definition: texturing_controller.h:51
std::string workspace_format
Definition: workspace.h:38
int size
Definition: FileIOFactory.cpp:130
void PrintHeading2(const std::string &heading)
Definition: misc.cc:231
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvMesh.cpp:225
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
double FocalLengthX() const
Definition: camera.cc:115
const image_t kInvalidImageId
Definition: types.h:76
bool Check() const
Definition: texturing_controller.cc:328
const double * e
Definition: essential_matrix_poly.h:10
const std::vector< image_t > & RegImageIds() const
Definition: reconstruction.h:504
void FileCopy(const std::string &src_path, const std::string &dst_path, CopyType type)
Definition: misc.cc:85
std::string input_type
Definition: workspace.h:39
int max_image_size
Definition: workspace.h:31
size_t Width() const
Definition: camera.h:160
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
#define PrintOption(option)
bool verbose
Definition: texturing_controller.h:36
bool has_normals
Definition: FileIOFactory.cpp:151
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
std::string GetFileParentDirectory(const std::string &filename)
Definition: FileSystem.cpp:314
Type z
Definition: CVGeom.h:137
int num_threads
Definition: workspace.h:28
CCVector3d toGlobal3d(const Vector3Tpl< T > &Plocal) const
Returns the point back-projected into the original coordinates system.
Definition: ecvShiftedObject.h:64
void Print() const
Definition: texturing_controller.cc:335
size_t NumRegImages() const
Definition: reconstruction.h:440
std::string textured_file_path
Definition: texturing_controller.h:42
std::string depth_map_type
Definition: texturing_controller.h:48
double min_normal_consistency
Definition: texturing_controller.h:54
std::string workspace_path
Definition: workspace.h:37
double cache_size
Definition: workspace.h:25
double FocalLength() const
Definition: camera.cc:109
Triangular mesh.
Definition: ecvMesh.h:35
const std::string & Name() const
Definition: image.h:242
std::string meshed_file_path
Definition: texturing_controller.h:39
Type y
Definition: CVGeom.h:137
Definition: AutomaticReconstructionController.h:17
bool computeNormals(bool perVertex)
Computes normals.
Definition: ecvMesh.cpp:242
Eigen::Matrix3d rotation
Definition: VoxelGridIO.cpp:27
bool IsStopped()
Definition: threading.cc:97
Definition: workspace.h:23
size_t Height() const
Definition: camera.h:162
void PrintMinutes() const
Definition: timer.cc:93
std::string mesh_source
Definition: texturing_controller.h:63
std::string StringPrintf(const char *format,...)
Definition: string.cc:131
bool use_gradient_magnitude
Definition: texturing_controller.h:60
double max_viewing_angle_deg
Definition: texturing_controller.h:57
const class Camera & Camera(const camera_t camera_id) const
Definition: reconstruction.h:450
const class Image & Image(const image_t image_id) const
Definition: reconstruction.h:454
static ccGLMatrixTpl< double > FromEigenMatrix3(const Eigen::Matrix< double, 3, 3 > &mat)
Definition: ecvGLMatrixTpl.h:59