 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
109 void SetPointSize(
const float point_size,
bool autoUpdate =
true);
110 void SetImageSize(
const float image_size,
bool autoUpdate =
true);
116 std::unordered_map<colmap::camera_t, colmap::Camera>
cameras;
117 std::unordered_map<colmap::image_t, colmap::Image>
images;
118 std::unordered_map<colmap::point3D_t, colmap::Point3D>
points3D;
127 void UploadPointData(
const bool selection_mode =
false);
128 void UploadPointConnectionData();
129 void UploadImageData(
const bool selection_mode =
false);
130 void UploadImageConnectionData();
131 void UploadMovieGrabberData();
137 void drawCameraSensors(std::vector<ccCameraSensor*>& sensors);
138 void resetCameraSensors(std::vector<ccCameraSensor*>& sensors);
139 void clearSensors(std::vector<ccCameraSensor*>& sensors);
140 void updateSensors(std::vector<ccCameraSensor*>& sensors,
141 const std::vector<colmap::image_t>& image_ids);
150 std::unique_ptr<PointColormapBase> point_colormap_;
151 std::unique_ptr<ImageColormapBase> image_colormap_;
153 float focus_distance_;
155 std::vector<std::pair<std::size_t, char>> selection_buffer_;
158 std::size_t selected_movie_grabber_view_;
168 std::vector<ccCameraSensor*> sensors_;
173 std::vector<ccCameraSensor*> movie_grabber_sensors_;
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Definition: colormaps.h:19
const class Track & Track() const
Definition: point3d.h:106
uint32_t image_t
Definition: types.h:61
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
Definition: colormaps.h:44
@ CAMERA_SENSOR
Definition: CVTypes.h:118
CLOUDVIEWER_HOST_DEVICE Pair< First, Second > make_pair(const First &_first, const Second &_second)
Definition: SlabTraits.h:49
float zFar_mm
Definition: ecvCameraSensor.h:42
normal_z x
Definition: my_point_types.h:165
Type x
Definition: CVGeom.h:137
double PrincipalPointX() const
Definition: camera.cc:146
Eigen::Matrix< Index, 2, 1 > Vector2i
Definition: knncpp.h:29
const std::vector< TrackElement > & Elements() const
Definition: track.h:84
int arrayHeight
Definition: ecvCameraSensor.h:44
Definition: option_manager.h:38
LineSet & clear()
Definition: LineSet.cpp:19
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
void setRedrawFlagRecursive(bool redraw=false)
Definition: ecvHObject.cpp:772
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
virtual bool IsEmpty() const override
Definition: ecvPointCloud.h:961
Bounding box structure.
Definition: ecvBBox.h:25
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
int arrayWidth
Definition: ecvCameraSensor.h:43
@ POINT_CLOUD
Definition: CVTypes.h:104
colmap::OptionManager OptionManager
Definition: BundleAdjustmentWidget.h:19
colmap::RenderOptions RenderOptions
Definition: ModelViewerWidget.h:35
virtual void setLocked(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:117
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
Type r
Definition: ecvColorTypes.h:54
Eigen::Vector3d ProjectionCenter() const
Definition: image.cc:152
double PrincipalPointY() const
Definition: camera.cc:152
math::float4 color
Definition: LineSetBuffers.cpp:46
virtual ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvBBox.h:64
std::vector< Eigen::Vector3d > points_
Points coordinates.
Definition: LineSet.h:156
void setFrameColor(ecvColor::Rgb color)
Definition: ecvSensor.h:130
Definition: reconstruction.h:40
CCVector3 * getPointPtr(size_t index)
Definition: PointCloudTpl.h:146
float DegToRad(const float deg)
Definition: math.h:171
double ImageToWorldThreshold(const double threshold) const
Definition: camera.cc:226
Backup "context" for an object.
Definition: ecvMainAppInterface.h:80
ImGuiContext * context
Definition: Window.cpp:76
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
uint64_t point3D_t
Definition: types.h:72
void setPointSize(unsigned size=0)
Sets point size.
Definition: ecvGenericPointCloud.h:275
Intrinsic parameters of the camera sensor.
Definition: ecvCameraSensor.h:27
normal_z y
Definition: my_point_types.h:168
void setGraphicScale(PointCoordinateType scale)
Sets the sensor graphic representation scale.
Definition: ecvSensor.h:125
const image_t kInvalidImageId
Definition: types.h:76
const double * e
Definition: essential_matrix_poly.h:10
bool GreaterThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:37
const std::vector< image_t > & RegImageIds() const
Definition: reconstruction.h:504
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
Definition: ecvHObject.cpp:594
Definition: MainWindow.h:117
Type g
Definition: ecvColorTypes.h:54
Definition: colormaps.h:95
std::shared_ptr< RenderOptions > render
Definition: option_manager.h:122
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
size_t Width() const
Definition: camera.h:160
void setPlaneColor(ecvColor::Rgb color)
Definition: ecvCameraSensor.h:549
ecvColor::Rgbub backgroundCol
Background color.
Definition: ecvGuiParameters.h:54
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
const ecvColor::Rgb & getPlaneColor() const
Definition: ecvCameraSensor.h:550
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
const std::unordered_map< camera_t, class Camera > & Cameras() const
Definition: reconstruction.h:496
void setIntrinsicParameters(const IntrinsicParameters ¶ms)
Sets intrinsic parameters.
Definition: ecvCameraSensor.cpp:323
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
colmap::PointColormapBase PointColormapBase
Definition: ModelViewerWidget.h:32
Type z
Definition: CVGeom.h:137
Camera (projective) sensor.
Definition: ecvCameraSensor.h:24
ccHObject * parent
Definition: ecvMainAppInterface.h:81
virtual void setRigidTransformation(const ccGLMatrix &mat)
Definition: ecvSensor.h:99
Definition: main_window.h:36
Type b
Definition: ecvColorTypes.h:54
static const int model_id
Definition: camera_models.h:167
void clear() override
Clears the entity from all its points and features.
Definition: ecvPointCloud.cpp:530
float DegreesToRadians(int degrees)
Convert degrees to radians.
Definition: CVMath.h:98
static const ParamStruct & Parameters()
Returns the stored values of each parameter.
Definition: ecvGuiParameters.cpp:24
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
constexpr PointCoordinateType PC_ONE
'1' as a PointCoordinateType value
Definition: CVConst.h:67
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
LineSet & PaintUniformColor(const Eigen::Vector3d &color)
Assigns each line in the LineSet the same color.
Definition: LineSet.h:101
float principal_point[2]
Definition: ecvCameraSensor.h:45
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
const point3D_t kInvalidPoint3DId
Definition: types.h:80
float pixelSize_mm[2]
Definition: ecvCameraSensor.h:37
RGB color structure.
Definition: ecvColorTypes.h:49
colmap::ImageColormapBase ImageColormapBase
Definition: ModelViewerWidget.h:33
const std::unordered_map< point3D_t, class Point3D > & Points3D() const
Definition: reconstruction.h:508
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
Definition: ecvHObject.h:325
float vFOV_rad
Definition: ecvCameraSensor.h:40
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
T * data()
Returns a pointer to internal data.
Definition: ecvGLMatrixTpl.h:810
Definition: AutomaticReconstructionController.h:17
void clear()
Resets the bounding box.
Definition: BoundingBox.h:125
static ccCameraSensor * ToCameraSensor(ccHObject *obj)
Definition: ecvHObjectCaster.cpp:251
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
Display context.
Definition: ecvDrawContext.h:365
Eigen::Matrix3d rotation
Definition: VoxelGridIO.cpp:27
std::vector< Eigen::Vector2i > lines_
Lines denoted by the index of points forming the line.
Definition: LineSet.h:158
size_t Height() const
Definition: camera.h:162
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
constexpr static RgbTpl FromEigen(const Eigen::Vector3d &t)
Definition: ecvColorTypes.h:86
static float ConvertFocalMMToPix(float focal_mm, float ccdPixelSize_mm)
Helper: converts camera focal from mm to pixels.
Definition: ecvCameraSensor.cpp:1658
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
ecvColor::Rgb & getPointColorPtr(size_t pointIndex)
Definition: ecvPointCloud.cpp:1542
GUI parameters.
Definition: ecvGuiParameters.h:30
float vertFocal_pix
Definition: ecvCameraSensor.h:35
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
Definition: LineSet.h:29
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200
void InitializeWithId(const int model_id, const double focal_length, const size_t width, const size_t height)
Definition: camera.cc:203
float zNear_mm
Definition: ecvCameraSensor.h:41
Definition: render_options.h:14
const class Image & Image(const image_t image_id) const
Definition: reconstruction.h:454
static ccGLMatrixTpl< float > FromEigenMatrix3(const Eigen::Matrix< float, 3, 3 > &mat)
Definition: ecvGLMatrixTpl.h:59