open3d.geometry.OrientedBoundingBox

文章推薦指數: 80 %
投票人數:10人

The oriented bounding box. The bounding box is oriented such that the axes are ordered with respect to the principal components. Return type. open3d.geometry. Open3D 0.15.1 GettingStarted Introduction Gettingstarted Buildfromsource LinkOpen3DinC++projects Builddocumentation Open3D-ML ARMsupport Docker Tutorial Geometry Pipelines Pipelines(Tensor) Visualization Core Dataset Reconstructionsystem Reconstructionsystem(Tensor) Sensor Reference Contribute ContributingtoOpen3D Contributionmethods Open3Dstyleguide C++API C++documentation PythonAPI open3d.camera open3d.core open3d.data open3d.geometry AxisAlignedBoundingBox DeformAsRigidAsPossibleEnergy FilterScope Geometry Geometry2D Geometry3D HalfEdge HalfEdgeTriangleMesh Image ImageFilterType KDTreeFlann KDTreeSearchParam KDTreeSearchParamHybrid KDTreeSearchParamKNN KDTreeSearchParamRadius LineSet MeshBase Octree OctreeColorLeafNode OctreeInternalNode OctreeInternalPointNode OctreeLeafNode OctreeNode OctreeNodeInfo OctreePointColorLeafNode OrientedBoundingBox PointCloud RGBDImage SimplificationContraction TetraMesh TriangleMesh Voxel VoxelGrid get_rotation_matrix_from_axis_angle get_rotation_matrix_from_quaternion get_rotation_matrix_from_xyz get_rotation_matrix_from_xzy get_rotation_matrix_from_yxz get_rotation_matrix_from_yzx get_rotation_matrix_from_zxy get_rotation_matrix_from_zyx open3d.io open3d.t open3d.ml open3d.pipelines open3d.utility open3d.visualization PythonExamples Camera Geometry IO Pipelines Utility Visualization Open3D Docs» open3d.geometry» open3d.geometry.OrientedBoundingBox open3d.geometry.OrientedBoundingBox¶ classopen3d.geometry.OrientedBoundingBox¶ Classthatdefinesanorientedboxthatcanbecomputedfrom3Dgeometries. classType¶ EnumclassforGeometrytypes. HalfEdgeTriangleMesh=<7>¶ Image=<8>¶ LineSet=<4>¶ PointCloud=<1>¶ RGBDImage=<9>¶ TetraMesh=<10>¶ TriangleMesh=<6>¶ Unspecified=<0>¶ VoxelGrid=<2>¶ propertyvalue¶ __init__(*args,**kwargs)¶ Overloadedfunction. __init__(self:open3d.cpu.pybind.geometry.OrientedBoundingBox)->None Defaultconstructor __init__(self:open3d.cpu.pybind.geometry.OrientedBoundingBox,arg0:open3d.cpu.pybind.geometry.OrientedBoundingBox)->None Copyconstructor __init__(self:open3d.cpu.pybind.geometry.OrientedBoundingBox,center:numpy.ndarray[numpy.float64[3,1]],R:numpy.ndarray[numpy.float64[3,3]],extent:numpy.ndarray[numpy.float64[3,1]])->None CreateOrientedBoudingBoxfromcenter,rotationRandextentinx,yandzdirection clear(self)¶ Clearallelementsinthegeometry. Returns open3d.geometry.Geometry staticcreate_from_axis_aligned_bounding_box(aabox)¶ ReturnsanorientedboundingboxfromtheAxisAlignedBoundingBox. Parameters aabox(open3d.geometry.AxisAlignedBoundingBox)–AxisAlignedBoundingBoxobjectfromwhichOrientedBoundingBoxiscreated. Returns open3d.geometry.OrientedBoundingBox staticcreate_from_points(points:open3d.cpu.pybind.utility.Vector3dVector,robust:bool=False)→open3d.cpu.pybind.geometry.OrientedBoundingBox¶ Createstheorientedboundingboxthatenclosesthesetofpoints. ComputestheorientedboundingboxbasedonthePCAoftheconvexhull. Thereturnedboundingboxisanapproximationtotheminimalboundingbox. Parameters points(open3d.utility.Vector3dVector)–Inputpoints. robust(bool)–Ifsettotrueusesamorerobustmethodwhichworksin degeneratecasesbutintroducesnoisetothepointscoordinates. Returns Theorientedboundingbox.The boundingboxisorientedsuchthattheaxesareorderedwithrespectto theprincipalcomponents. Returntype open3d.geometry.OrientedBoundingBox dimension(self)¶ Returnswhetherthegeometryis2Dor3D. Returns int get_axis_aligned_bounding_box(self)¶ Returnsanaxis-alignedboundingboxofthegeometry. Returns open3d.geometry.AxisAlignedBoundingBox get_box_points(self)¶ Returnstheeightpointsthatdefinetheboundingbox. Returns open3d.utility.Vector3dVector get_center(self)¶ Returnsthecenterofthegeometrycoordinates. Returns numpy.ndarray[numpy.float64[3,1]] get_geometry_type(self)¶ Returnsoneofregisteredgeometrytypes. Returns open3d.geometry.Geometry.GeometryType get_max_bound(self)¶ Returnsmaxboundsforgeometrycoordinates. Returns numpy.ndarray[numpy.float64[3,1]] get_min_bound(self)¶ Returnsminboundsforgeometrycoordinates. Returns numpy.ndarray[numpy.float64[3,1]] get_oriented_bounding_box(self:open3d.cpu.pybind.geometry.Geometry3D,robust:bool=False)→open3d::geometry::OrientedBoundingBox¶ Returnstheorientedboundingboxforthegeometry. ComputestheorientedboundingboxbasedonthePCAoftheconvexhull. Thereturnedboundingboxisanapproximationtotheminimalboundingbox. Parameters robust(bool)–Ifsettotrueusesamorerobustmethodwhichworksin degeneratecasesbutintroducesnoisetothepointscoordinates. Returns Theorientedboundingbox.The boundingboxisorientedsuchthattheaxesareorderedwithrespectto theprincipalcomponents. Returntype open3d.geometry.OrientedBoundingBox get_point_indices_within_bounding_box(self,points)¶ Returnindicestopointsthatarewithintheboundingbox. Parameters points(open3d.utility.Vector3dVector)–Alistofpoints. Returns List[int] staticget_rotation_matrix_from_axis_angle(rotation:numpy.ndarray[numpy.float64[3,1]])→numpy.ndarray[numpy.float64[3,3]]¶ staticget_rotation_matrix_from_quaternion(rotation:numpy.ndarray[numpy.float64[4,1]])→numpy.ndarray[numpy.float64[3,3]]¶ staticget_rotation_matrix_from_xyz(rotation:numpy.ndarray[numpy.float64[3,1]])→numpy.ndarray[numpy.float64[3,3]]¶ staticget_rotation_matrix_from_xzy(rotation:numpy.ndarray[numpy.float64[3,1]])→numpy.ndarray[numpy.float64[3,3]]¶ staticget_rotation_matrix_from_yxz(rotation:numpy.ndarray[numpy.float64[3,1]])→numpy.ndarray[numpy.float64[3,3]]¶ staticget_rotation_matrix_from_yzx(rotation:numpy.ndarray[numpy.float64[3,1]])→numpy.ndarray[numpy.float64[3,3]]¶ staticget_rotation_matrix_from_zxy(rotation:numpy.ndarray[numpy.float64[3,1]])→numpy.ndarray[numpy.float64[3,3]]¶ staticget_rotation_matrix_from_zyx(rotation:numpy.ndarray[numpy.float64[3,1]])→numpy.ndarray[numpy.float64[3,3]]¶ is_empty(self)¶ ReturnsTrueiffthegeometryisempty. Returns bool rotate(*args,**kwargs)¶ Overloadedfunction. rotate(self,R)Applyrotationtothegeometrycoordinatesandnormals. Parameters R(numpy.ndarray[numpy.float64[3,3]])–Therotationmatrix Returns open3d.geometry.Geometry3D rotate(self,R,center)Applyrotationtothegeometrycoordinatesandnormals. Parameters R(numpy.ndarray[numpy.float64[3,3]])–Therotationmatrix center(numpy.ndarray[numpy.float64[3,1]])–Rotationcenterusedfortransformation. Returns open3d.geometry.Geometry3D scale(*args,**kwargs)¶ Overloadedfunction. scale(self,scale,center)Applyscalingtothegeometrycoordinates. Parameters scale(float)–Thescaleparameterthatismultipliedtothepoints/verticesofthegeometry. center(numpy.ndarray[numpy.float64[3,1]])–Scalecenterusedfortransformation. Returns open3d.geometry.Geometry3D scale(self,scale,center)Applyscalingtothegeometrycoordinates. Parameters scale(float)–Thescaleparameterthatismultipliedtothepoints/verticesofthegeometry. center(numpy.ndarray[numpy.float64[3,1]])–Scalecenterusedfortransformation. Returns open3d.geometry.Geometry3D transform(self,arg0)¶ Applytransformation(4x4matrix)tothegeometrycoordinates. Parameters arg0(numpy.ndarray[numpy.float64[4,4]])– Returns open3d.geometry.Geometry3D translate(self,translation,relative=True)¶ Applytranslationtothegeometrycoordinates. Parameters translation(numpy.ndarray[numpy.float64[3,1]])–A3Dvectortotransformthegeometry relative(bool,optional,default=True)–Iftrue,thetranslationvectorisdirectlyaddedtothegeometrycoordinates.Otherwise,thecenterismovedtothetranslationvector. Returns open3d.geometry.Geometry3D volume(self)¶ Returnsthevolumeoftheboundingbox. Returns float HalfEdgeTriangleMesh=<7>¶ Image=<8>¶ LineSet=<4>¶ PointCloud=<1>¶ propertyR¶ float64arrayofshape(3,3) RGBDImage=<9>¶ TetraMesh=<10>¶ TriangleMesh=<6>¶ Unspecified=<0>¶ VoxelGrid=<2>¶ propertycenter¶ float64arrayofshape(3,) propertycolor¶ float64arrayofshape(3,) propertyextent¶ float64arrayofshape(3,) Docsversion 0.15.1 Versions



請為這篇文章評分?