24 namespace visualization {
26 class SelectionPolygonVolume;
59 std::shared_ptr<geometry::
PointCloud> CropPointCloudInRectangle(
61 std::shared_ptr<geometry::
PointCloud> CropPointCloudInPolygon(
67 std::vector<
size_t> CropInRectangle(
69 std::vector<
size_t> CropInPolygon(const
std::vector<
Eigen::Vector3d> &input,
The base geometry class for 2D geometries.
Definition: Geometry2D.h:22
The base geometry class.
Definition: Geometry.h:18
GeometryType
Specifies possible geometry types.
Definition: Geometry.h:23
The Image class stores image with customizable width, height, num of channels and bytes per channel.
Definition: Image.h:34
A point cloud consists of point coordinates, and optionally point colors and point normals.
Definition: PointCloud.h:36
Triangle mesh contains vertices and triangles represented by the indices to the vertices.
Definition: TriangleMesh.h:35
Definition: SelectionPolygon.h:32
std::shared_ptr< geometry::TriangleMesh > CropTriangleMesh(const geometry::TriangleMesh &input, const ViewControl &view)
Definition: SelectionPolygon.cpp:124
SectionPolygonType
Definition: SelectionPolygon.h:34
Eigen::Vector2d GetMinBound() const final
Returns min bounds for geometry coordinates.
Definition: SelectionPolygon.cpp:35
void FillPolygon(int width, int height)
Definition: SelectionPolygon.cpp:69
std::shared_ptr< SelectionPolygonVolume > CreateSelectionPolygonVolume(const ViewControl &view)
Definition: SelectionPolygon.cpp:148
bool IsEmpty() const override
Returns true iff the geometry is empty.
Definition: SelectionPolygon.cpp:30
std::shared_ptr< geometry::PointCloud > CropPointCloud(const geometry::PointCloud &input, const ViewControl &view)
Definition: SelectionPolygon.cpp:108
SectionPolygonType polygon_type_
Definition: SelectionPolygon.h:76
~SelectionPolygon() override
Definition: SelectionPolygon.h:43
bool is_closed_
Definition: SelectionPolygon.h:74
SelectionPolygon()
Definition: SelectionPolygon.h:41
Eigen::Vector2d GetMaxBound() const final
Returns max bounds for geometry coordinates.
Definition: SelectionPolygon.cpp:52
std::vector< Eigen::Vector2d > polygon_
Definition: SelectionPolygon.h:73
SelectionPolygon & Clear() override
Clear all elements in the geometry.
Definition: SelectionPolygon.cpp:22
geometry::Image polygon_interior_mask_
Definition: SelectionPolygon.h:75
Select a polygon volume for cropping.
Definition: SelectionPolygonVolume.h:30
View controller for visualizer.
Definition: ViewControl.h:23
Definition: NonRigidOptimizer.cpp:22
Definition: PinholeCameraIntrinsic.cpp:16