OpenCV  4.3.0
Open Source Computer Vision
Classes | Enumerations | Functions
cv::viz Namespace Reference

Classes

class  Camera
 This class wraps intrinsic parameters of a camera. More...
 
class  Color
 This class represents color in BGR order. More...
 
class  KeyboardEvent
 This class represents a keyboard event. More...
 
class  Mesh
 This class wraps mesh attributes, and it can load a mesh from a ply file. : More...
 
class  MouseEvent
 This class represents a mouse event. More...
 
class  Viz3d
 The Viz3d class represents a 3D visualizer window. This class is implicitly shared. More...
 
class  WArrow
 This 3D Widget defines an arrow. More...
 
class  WCameraPosition
 This 3D Widget represents camera position in a scene by its axes or viewing frustum. : More...
 
class  WCircle
 This 3D Widget defines a circle. More...
 
class  WCloud
 Clouds. More...
 
class  WCloudCollection
 This 3D Widget defines a collection of clouds. : More...
 
class  WCloudNormals
 This 3D Widget represents normals of a point cloud. : More...
 
class  WCone
 This 3D Widget defines a cone. : More...
 
class  WCoordinateSystem
 Compound widgets. More...
 
class  WCube
 This 3D Widget defines a cube. More...
 
class  WCylinder
 This 3D Widget defines a cylinder. : More...
 
class  WGrid
 This 3D Widget defines a grid. : More...
 
class  Widget
 Base class of all widgets. Widget is implicitly shared. More...
 
class  Widget2D
 Base class of all 2D widgets. More...
 
class  Widget3D
 Base class of all 3D widgets. More...
 
struct  WidgetAccessor
 This class is for users who want to develop their own widgets using VTK library API. : More...
 
class  WImage3D
 This 3D Widget represents an image in 3D space. : More...
 
class  WImageOverlay
 This 2D Widget represents an image overlay. : More...
 
class  WLine
 Simple widgets. More...
 
class  WMesh
 Constructs a WMesh. More...
 
class  WPaintedCloud
 
class  WPlane
 This 3D Widget defines a finite plane. More...
 
class  WPolyLine
 This 3D Widget defines a poly line. : More...
 
class  WSphere
 This 3D Widget defines a sphere. : More...
 
class  WText
 Text and image widgets. More...
 
class  WText3D
 This 3D Widget represents 3D text. The text always faces the camera. More...
 
class  WTrajectory
 Trajectories. More...
 
class  WTrajectoryFrustums
 This 3D Widget represents a trajectory. : More...
 
class  WTrajectorySpheres
 This 3D Widget represents a trajectory using spheres and lines. More...
 
class  WWidgetMerger
 This class allows to merge several widgets to single one. More...
 

Enumerations

enum  RenderingProperties {
  POINT_SIZE,
  OPACITY,
  LINE_WIDTH,
  FONT_SIZE,
  REPRESENTATION,
  IMMEDIATE_RENDERING,
  SHADING,
  AMBIENT,
  LIGHTING
}
 Widget rendering properties. More...
 
enum  RepresentationValues {
  REPRESENTATION_POINTS,
  REPRESENTATION_WIREFRAME,
  REPRESENTATION_SURFACE
}
 
enum  ShadingValues {
  SHADING_FLAT,
  SHADING_GOURAUD,
  SHADING_PHONG
}
 

Functions

void computeNormals (const Mesh &mesh, OutputArray normals)
 
Viz3d getWindowByName (const String &window_name)
 Retrieves a window by its name. More...
 
Viz3d imshow (const String &window_name, InputArray image, const Size &window_size=Size(-1, -1))
 Displays image in specified window. More...
 
bool isNan (float x)
 Checks float/double value for nan. More...
 
bool isNan (double x)
 Checks float/double value for nan. More...
 
template<typename _Tp , int cn>
bool isNan (const Vec< _Tp, cn > &v)
 Checks float/double value for nan. More...
 
template<typename _Tp >
bool isNan (const Point3_< _Tp > &p)
 Checks float/double value for nan. More...
 
Affine3d makeCameraPose (const Vec3d &position, const Vec3d &focal_point, const Vec3d &y_dir)
 Constructs camera pose from position, focal_point and up_vector (see gluLookAt() for more information). More...
 
Affine3d makeTransformToGlobal (const Vec3d &axis_x, const Vec3d &axis_y, const Vec3d &axis_z, const Vec3d &origin=Vec3d::all(0))
 Takes coordinate frame data and builds transform to global coordinate frame. More...
 
Mat readCloud (const String &file, OutputArray colors=noArray(), OutputArray normals=noArray())
 
Mesh readMesh (const String &file)
 Reads mesh. Only ply format is supported now and no texture load support. More...
 
bool readPose (const String &file, Affine3d &pose, const String &tag="pose")
 Read/write poses and trajectories. More...
 
void readTrajectory (OutputArray traj, const String &files_format="pose%05d.xml", int start=0, int end=INT_MAX, const String &tag="pose")
 
void unregisterAllWindows ()
 Unregisters all Viz windows from internal database. After it 'getWindowByName()' will create new windows instead of getting existing from the database. More...
 
void writeCloud (const String &file, InputArray cloud, InputArray colors=noArray(), InputArray normals=noArray(), bool binary=false)
 Read/write clouds. Supported formats: ply, xyz, obj and stl (readonly) More...
 
void writePose (const String &file, const Affine3d &pose, const String &tag="pose")
 
void writeTrajectory (InputArray traj, const String &files_format="pose%05d.xml", int start=0, const String &tag="pose")