OpenCV  3.4.0
Open Source Computer Vision
Classes | Enumerations | Functions
OGRE 3D Visualiser

Classes

class  cv::ovis::WindowScene
 

Enumerations

enum  cv::ovis::MaterialProperty {
  cv::ovis::MATERIAL_POINT_SIZE,
  cv::ovis::MATERIAL_OPACITY,
  cv::ovis::MATERIAL_EMISSIVE,
  cv::ovis::MATERIAL_TEXTURE
}
 
enum  cv::ovis::SceneSettings {
  cv::ovis::SCENE_SEPERATE = 1,
  cv::ovis::SCENE_INTERACTIVE = 2,
  cv::ovis::SCENE_SHOW_CS_CROSS = 4
}
 

Functions

void cv::ovis::addResourceLocation (const String &path)
 
void cv::ovis::createGridMesh (const String &name, const Size2f &size, const Size &segments=Size(1, 1))
 
void cv::ovis::createPlaneMesh (const String &name, const Size2f &size, InputArray image=noArray())
 
void cv::ovis::createPointCloudMesh (const String &name, InputArray vertices, InputArray colors=noArray())
 
Ptr< WindowScenecv::ovis::createWindow (const String &title, const Size &size, int flags=SCENE_INTERACTIVE)
 
bool cv::ovis::renderOneFrame ()
 
void cv::ovis::setMaterialProperty (const String &name, int prop, const Scalar &value)
 
void cv::ovis::setMaterialProperty (const String &name, int prop, const String &value)
 

Detailed Description

Enumeration Type Documentation

§ MaterialProperty

Enumerator
MATERIAL_POINT_SIZE 
MATERIAL_OPACITY 
MATERIAL_EMISSIVE 
MATERIAL_TEXTURE 

§ SceneSettings

Enumerator
SCENE_SEPERATE 

the window will use a seperate scene. The scene will be shared otherwise.

SCENE_INTERACTIVE 

allow the user to control the camera.

SCENE_SHOW_CS_CROSS 

draw coordinate system crosses for debugging

Function Documentation

§ addResourceLocation()

void cv::ovis::addResourceLocation ( const String path)

Add an additional resource location that is search for meshes, textures and materials

must be called before the first createWindow. If give path does not exist, retries inside Ogre Media Directory.

Parameters
pathfolder or Zip archive.

§ createGridMesh()

void cv::ovis::createGridMesh ( const String name,
const Size2f size,
const Size segments = Size(1, 1) 
)

creates a grid

creates a material with the same name

Parameters
namename of the mesh
sizeextents of the grid
segmentsnumber of segments per side

§ createPlaneMesh()

void cv::ovis::createPlaneMesh ( const String name,
const Size2f size,
InputArray  image = noArray() 
)

create a 2D plane, X right, Y down, Z up

creates a material and a texture with the same name

Parameters
namename of the mesh
sizesize in world units
imageoptional texture

§ createPointCloudMesh()

void cv::ovis::createPointCloudMesh ( const String name,
InputArray  vertices,
InputArray  colors = noArray() 
)

creates a point cloud mesh

creates a material with the same name

Parameters
namename of the mesh
verticesfloat vector of positions
colorsuchar vector of colors

§ createWindow()

Ptr<WindowScene> cv::ovis::createWindow ( const String title,
const Size size,
int  flags = SCENE_INTERACTIVE 
)

create a new rendering window/ viewport

Parameters
titlewindow title
sizesize of the window
flags
See also
SceneSettings

§ renderOneFrame()

bool cv::ovis::renderOneFrame ( )

update all windows

Returns
true if this functian can be called again (i.e. continue rendering). false otherwise.

§ setMaterialProperty() [1/2]

void cv::ovis::setMaterialProperty ( const String name,
int  prop,
const Scalar value 
)

set the property of a material to the given value

Parameters
namematerial name
propproperty MaterialProperty
valuethe value

§ setMaterialProperty() [2/2]

void cv::ovis::setMaterialProperty ( const String name,
int  prop,
const String value 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.