OpenCV
4.1.1
Open Source Computer Vision
|
Classes | |
class | cv::ovis::WindowScene |
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< WindowScene > | cv::ovis::createWindow (const String &title, const Size &size, int flags=SCENE_INTERACTIVE|SCENE_AA) |
void | cv::ovis::setMaterialProperty (const String &name, int prop, const Scalar &value) |
void | cv::ovis::setMaterialProperty (const String &name, int prop, const String &value) |
void | cv::ovis::setMaterialProperty (const String &name, const String &prop, const Scalar &value) |
void | cv::ovis::updateTexture (const String &name, InputArray image) |
int | cv::ovis::waitKey (int delay=0) |
#include <opencv2/ovis.hpp>
Enumerator | |
---|---|
ENTITY_MATERIAL | |
ENTITY_SCALE | |
ENTITY_AABB_WORLD | |
ENTITY_ANIMBLEND_MODE |
#include <opencv2/ovis.hpp>
Enumerator | |
---|---|
MATERIAL_POINT_SIZE | |
MATERIAL_LINE_WIDTH | |
MATERIAL_OPACITY | |
MATERIAL_EMISSIVE | |
MATERIAL_TEXTURE0 | |
MATERIAL_TEXTURE | |
MATERIAL_TEXTURE1 | |
MATERIAL_TEXTURE2 | |
MATERIAL_TEXTURE3 |
#include <opencv2/ovis.hpp>
void cv::ovis::addResourceLocation | ( | const String & | path | ) |
#include <opencv2/ovis.hpp>
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.
path | folder or Zip archive. |
void cv::ovis::createGridMesh | ( | const String & | name, |
const Size2f & | size, | ||
const Size & | segments = Size(1, 1) |
||
) |
#include <opencv2/ovis.hpp>
creates a grid
creates a material with the same name
name | name of the mesh |
size | extents of the grid |
segments | number of segments per side |
void cv::ovis::createPlaneMesh | ( | const String & | name, |
const Size2f & | size, | ||
InputArray | image = noArray() |
||
) |
#include <opencv2/ovis.hpp>
create a 2D plane, X right, Y down, Z up
creates a material and a texture with the same name
name | name of the mesh |
size | size in world units |
image | optional texture |
void cv::ovis::createPointCloudMesh | ( | const String & | name, |
InputArray | vertices, | ||
InputArray | colors = noArray() |
||
) |
#include <opencv2/ovis.hpp>
creates a point cloud mesh
creates a material with the same name
name | name of the mesh |
vertices | float vector of positions |
colors | uchar vector of colors |
Ptr<WindowScene> cv::ovis::createWindow | ( | const String & | title, |
const Size & | size, | ||
int | flags = SCENE_INTERACTIVE|SCENE_AA |
||
) |
#include <opencv2/ovis.hpp>
create a new rendering window/ viewport
title | window title |
size | size of the window |
flags | a combination of SceneSettings |
Furthermore, the behavior is controlled by the following environment variables
#include <opencv2/ovis.hpp>
set the property of a material to the given value
name | material name |
prop | MaterialProperty |
value | the value |
#include <opencv2/ovis.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void cv::ovis::setMaterialProperty | ( | const String & | name, |
const String & | prop, | ||
const Scalar & | value | ||
) |
#include <opencv2/ovis.hpp>
set the shader property of a material to the given value
name | material name |
prop | property name |
value | the value |
void cv::ovis::updateTexture | ( | const String & | name, |
InputArray | image | ||
) |
#include <opencv2/ovis.hpp>
updates an existing texture
A new texture can be created with createPlaneMesh
name | name of the texture |
image | the image data |
int cv::ovis::waitKey | ( | int | delay = 0 | ) |
#include <opencv2/ovis.hpp>
update all windows and wait for keyboard event
delay | 0 is the special value that means "forever". Any positive number returns after sync to blank (typically 16ms). |