MYNT EYE SDK  v1.8
https://www.slightech.com/camera
mynteye::Plugin Class Referenceabstract

The plugin which could implement processing by yourself. More...

Public Member Functions

virtual void OnCreate (Camera *camera)
 Called when plugin created. More...
 
virtual void OnOpen (const ErrorCode &code)
 Called when camera opened. More...
 
virtual void OnGrab (const ErrorCode &code)
 Called when camera grabbed. More...
 
virtual void OnRetrieveImage (cv::Mat &mat, const View &view, const ErrorCode &code)
 Called when camera retrieved image. More...
 
virtual void OnRetrieveIMUData (std::vector< IMUData > &imudatas, const ErrorCode &code)
 Called when camera retrieved IMU datas. More...
 
virtual void OnClose ()
 Called when camera closed.
 
virtual void OnProcessGrab (cv::Mat &left_raw, cv::Mat &right_raw)
 Called before process grabbed images. More...
 
virtual bool OnProcessRecify (const cv::Mat &left_raw, const cv::Mat &right_raw, cv::Mat &left_rectified, cv::Mat &right_rectified)
 Called before process rectification. More...
 
virtual bool OnProcessDepthMap (const cv::Mat &left_rectified, const cv::Mat &right_rectified, cv::Mat &depthmap)
 Called before process depth map. More...
 
virtual bool OnProcessPointCloud (const cv::Mat &depthmap, cv::Mat &pointcloud)
 Called before process point cloud. More...
 

Detailed Description

The plugin which could implement processing by yourself.

Member Function Documentation

◆ OnCreate()

virtual void mynteye::Plugin::OnCreate ( Camera camera)
inlinevirtual

Called when plugin created.

Parameters
camerathe MYNT EYE camera.

◆ OnGrab()

virtual void mynteye::Plugin::OnGrab ( const ErrorCode code)
inlinevirtual

Called when camera grabbed.

Parameters
codeSUCCESS if ok, otherwise error.

◆ OnOpen()

virtual void mynteye::Plugin::OnOpen ( const ErrorCode code)
inlinevirtual

Called when camera opened.

Parameters
codeSUCCESS if ok, otherwise error.

◆ OnProcessDepthMap()

virtual bool mynteye::Plugin::OnProcessDepthMap ( const cv::Mat &  left_rectified,
const cv::Mat &  right_rectified,
cv::Mat &  depthmap 
)
inlinevirtual

Called before process depth map.

Note
This method is called in a standalone processing thread.
Returns
true if processed by yourself. Then it won't process depth map any more in SDK.

◆ OnProcessGrab()

virtual void mynteye::Plugin::OnProcessGrab ( cv::Mat &  left_raw,
cv::Mat &  right_raw 
)
inlinevirtual

Called before process grabbed images.

Note
This method is called in a standalone processing thread.

◆ OnProcessPointCloud()

virtual bool mynteye::Plugin::OnProcessPointCloud ( const cv::Mat &  depthmap,
cv::Mat &  pointcloud 
)
inlinevirtual

Called before process point cloud.

Note
This method is called in a standalone processing thread.
Returns
true if processed by yourself. Then it won't process point cloud any more in SDK.

◆ OnProcessRecify()

virtual bool mynteye::Plugin::OnProcessRecify ( const cv::Mat &  left_raw,
const cv::Mat &  right_raw,
cv::Mat &  left_rectified,
cv::Mat &  right_rectified 
)
inlinevirtual

Called before process rectification.

Note
This method is called in a standalone processing thread.
Returns
true if processed by yourself. Then it won't process rectification any more in SDK.

◆ OnRetrieveImage()

virtual void mynteye::Plugin::OnRetrieveImage ( cv::Mat &  mat,
const View view,
const ErrorCode code 
)
inlinevirtual

Called when camera retrieved image.

Parameters
matthe Mat to store the image.
viewdefines the image type wanted, see View.
codeSUCCESS if ok, otherwise error.

◆ OnRetrieveIMUData()

virtual void mynteye::Plugin::OnRetrieveIMUData ( std::vector< IMUData > &  imudatas,
const ErrorCode code 
)
inlinevirtual

Called when camera retrieved IMU datas.

Parameters
imudatasthe given IMU datas.
codeSUCCESS if ok, otherwise error.