Class Viz3d
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Displays OpenCV point clouds, meshes and other 3D geometry in HighGUI windows.
public static class Viz3d
- Inheritance
-
Viz3d
- Inherited Members
Remarks
Requires a native runtime built with OpenGL and a HighGUI backend that supports it. A scene owns its window's draw, cleanup and mouse callbacks. Use a separate window for custom drawing or ImShow(string, Mat). Pump events with WaitKey(int) and close the window with DestroyWindow(string).
Methods
- DestroyObject(string, string)
Removes the named object from the scene.
- SetGridVisible(string, bool)
Shows or hides the scene grid.
- SetObjectPosition(string, string, Vec3f)
Sets the XYZ position of an object.
- SetObjectRotation(string, string, Vec3f)
Sets the Euler angles of an object in radians.
- SetPerspective(string, float, float, float)
Sets the vertical field of view in radians and the near and far clip distances.
- SetSky(string, Vec3f)
Sets the background RGB color.
- SetSun(string, Vec3f, Vec3f, Vec3f)
Sets the light direction and the ambient and diffuse RGB colors.
- ShowBox(string, string, Vec3f, Vec3f, Viz3dRenderMode)
Displays a box with the specified half-extents and RGB color.
- ShowCameraTrajectory(string, string, InputArray, float, float)
Displays a camera trajectory whose rows hold XYZ positions and XYZ viewing directions.
- ShowCameraTrajectory(string, string, InputArray, float, float, Vec3f, Vec3f)
Displays a camera trajectory whose rows hold XYZ positions and XYZ viewing directions.
- ShowGaussianSplats(string, string, InputArray)
Displays a decoded Gaussian splat scene in the layout of GaussianSplatLayout.
- ShowLines(string, string, InputArray)
Displays lines from pairs of rows containing XYZ and RGB values.
- ShowMesh(string, string, InputArray, InputArray)
Displays a triangle mesh. Each vertex row holds XYZ, optional RGB and optional normals.
- ShowPlane(string, string, Vec2f, Vec3f, Viz3dRenderMode)
Displays a plane facing positive Y with the specified half-extents and RGB color.
- ShowPoints(string, string, InputArray)
Displays points whose rows contain XYZ and RGB values.
- ShowRgbd(string, string, InputArray, InputArray, float)
Displays a CV_32FC4 RGB-D image with depth in millimeters using a 3-by-3 camera intrinsic matrix.
- ShowSphere(string, string, float, Vec3f, Viz3dRenderMode, int)
Displays a sphere with the specified radius, RGB color and subdivision count.