The main class to use the MYNT EYE camera. More...
Public Member Functions | |
Camera () | |
Constructor. More... | |
~Camera () | |
Destructor. More... | |
void | SetMode (const Mode &mode) |
Sets mode. More... | |
void | SetScale (float scale) |
Sets scale factor to the grabbed images. More... | |
ErrorCode | Open (const InitParameters ¶ms) |
Opens the MYNE EYE camera. More... | |
bool | IsOpened () |
Tests if the camera is opened. More... | |
ErrorCode | SetRate (const Rate &rate) |
Sets framerate & IMU frequency. More... | |
std::string | GetHardWareVersion () |
Gets hard ware version. More... | |
std::int32_t | GetControlProperty (const ControlProperty &prop) |
Gets control property value. More... | |
ErrorCode | SetControlProperty (const ControlProperty &prop, std::int32_t value) |
Sets control property value. More... | |
ErrorCode | RequestEraseChip () |
Requests erase chip. More... | |
ErrorCode | RequestZeroDriftCalibration () |
Requests zero drift calibration. More... | |
void | ActivateAsyncGrabFeature (bool keep_imu_frequency=false) |
Activates async grap feature. More... | |
void | DeactivateAsyncGrabFeature () |
Deactivates async grap feature. | |
bool | IsAsyncGrabFeatureActivated () |
Tests if the async grap feature is activated. More... | |
void | ActivateDepthMapFeature () |
Activates depth map feature. | |
void | DeactivateDepthMapFeature () |
Deactivates depth map feature. | |
bool | IsDepthMapFeatureActivated () |
Tests if the depth map feature is activated. More... | |
void | ActivatePointCloudFeature () |
Activates point cloud feature. | |
void | DeactivatePointCloudFeature () |
Deactivates point cloud feature. | |
bool | IsPointCloudFeatureActivated () |
Tests if the point cloud feature is activated. More... | |
void | SetGrabErrorCallback (GrabErrorCallback callback) |
Sets grab error callback. | |
void | SetGrabProcessCallbacks (GrabPreProcessCallback pre_callback, GrabPostProcessCallback post_callback) |
Sets process grab callbacks. | |
void | SetRectifyProcessCallbacks (RectifyPreProcessCallback pre_callback, RectifyPostProcessCallback post_callback) |
Sets process rectification callbacks. | |
void | SetDepthMapProcessCallbacks (DepthMapPreProcessCallback pre_callback, DepthMapPostProcessCallback post_callback) |
Sets process depth map callbacks. | |
void | SetPointCloudProcessCallbacks (PointCloudPreProcessCallback pre_callback, PointCloudPostProcessCallback post_callback) |
Sets process point cloud callbacks. | |
ErrorCode | Grab () |
Grabs the new image, and process it. More... | |
ErrorCode | RetrieveImage (cv::Mat &mat, const View &view=View::VIEW_LEFT) |
Retrieves a image of wanted type. More... | |
ErrorCode | RetrieveIMUData (std::vector< IMUData > &imudatas) |
Retrieves the IMU datas. More... | |
ErrorCode | RetrieveIMUData (std::vector< IMUData > &imudatas, std::uint32_t ×tamp) |
Retrieves the IMU datas. More... | |
std::uint32_t | GetTimestamp () |
Returns the lastest hardware timestamp which indicates when retrieved. More... | |
std::uint16_t | GetExposureTime () |
Returns the exposure time. More... | |
Resolution | GetResolution () |
Returns the current image size. More... | |
CameraInformation | GetCameraInformation () |
Returns the camera informations. More... | |
CalibrationParameters | GetCalibrationParameters () |
Returns the calibration parameters. More... | |
std::uint64_t | GetDroppedCount (const Process &proc) |
Returns the dropped count in some process. More... | |
void | Close () |
Closes the camera and free the memory. | |
void | ActivatePlugin (const std::string &libpath) |
Activates plugin. More... | |
void | DeactivatePlugin () |
Deactivates plugin. | |
bool | IsPluginActivated () |
Tests if plugin is activated. More... | |
bool | IsFirmwareLatest () |
Tests if firmware is latest. More... | |
Static Public Member Functions | |
static std::string | GetSDKRoot () |
Returns the SDK root directory. More... | |
static std::string | GetSDKVersion () |
Returns the SDK version. More... | |
The main class to use the MYNT EYE camera.
mynteye::Camera::Camera | ( | ) |
Constructor.
mynteye::Camera::~Camera | ( | ) |
Destructor.
void mynteye::Camera::ActivateAsyncGrabFeature | ( | bool | keep_imu_frequency = false | ) |
Activates async grap feature.
keep_imu_frequency | whether keep imu frequency or not. |
void mynteye::Camera::ActivatePlugin | ( | const std::string & | libpath | ) |
Activates plugin.
libpath | the plugin library path. |
CalibrationParameters mynteye::Camera::GetCalibrationParameters | ( | ) |
Returns the calibration parameters.
CameraInformation mynteye::Camera::GetCameraInformation | ( | ) |
Returns the camera informations.
std::int32_t mynteye::Camera::GetControlProperty | ( | const ControlProperty & | prop | ) |
Gets control property value.
prop | the control property, see ControlProperty. |
-1
means failed. std::uint64_t mynteye::Camera::GetDroppedCount | ( | const Process & | proc | ) |
Returns the dropped count in some process.
std::uint16_t mynteye::Camera::GetExposureTime | ( | ) |
Returns the exposure time.
[1,480]
. It means the [min,max]
of different frame rates. rate | max | the exposure time |
---|---|---|
10 fps | 14.99 ms | GetExposureTime() * 14.99 / 480 ms |
25 fps | 18.03 ms | GetExposureTime() * 18.03 / 480 ms |
50 fps | 17.81 ms | GetExposureTime() * 17.81 / 480 ms |
std::string mynteye::Camera::GetHardWareVersion | ( | ) |
Gets hard ware version.
Resolution mynteye::Camera::GetResolution | ( | ) |
Returns the current image size.
|
static |
Returns the SDK root directory.
|
static |
Returns the SDK version.
std::uint32_t mynteye::Camera::GetTimestamp | ( | ) |
Returns the lastest hardware timestamp which indicates when retrieved.
the raw images and imu datas. It's the elapsed time after camera working, in unit 0.1ms.
ErrorCode mynteye::Camera::Grab | ( | ) |
Grabs the new image, and process it.
bool mynteye::Camera::IsAsyncGrabFeatureActivated | ( | ) |
Tests if the async grap feature is activated.
true
if activated. bool mynteye::Camera::IsDepthMapFeatureActivated | ( | ) |
Tests if the depth map feature is activated.
true
if activated. bool mynteye::Camera::IsFirmwareLatest | ( | ) |
Tests if firmware is latest.
true
if latest. bool mynteye::Camera::IsOpened | ( | ) |
Tests if the camera is opened.
true
if opened. bool mynteye::Camera::IsPluginActivated | ( | ) |
Tests if plugin is activated.
true
if activated. bool mynteye::Camera::IsPointCloudFeatureActivated | ( | ) |
Tests if the point cloud feature is activated.
true
if activated. ErrorCode mynteye::Camera::Open | ( | const InitParameters & | params | ) |
Opens the MYNE EYE camera.
ErrorCode mynteye::Camera::RequestEraseChip | ( | ) |
ErrorCode mynteye::Camera::RequestZeroDriftCalibration | ( | ) |
Requests zero drift calibration.
Retrieves a image of wanted type.
mat | the Mat to store the image. |
view | defines the image type wanted, see View. |
Retrieves the IMU datas.
imudatas | the given IMU datas. |
ErrorCode mynteye::Camera::RetrieveIMUData | ( | std::vector< IMUData > & | imudatas, |
std::uint32_t & | timestamp | ||
) |
Retrieves the IMU datas.
imudatas | the given IMU datas. |
timestamp | the hardware timestamp which elapsed after camera working, in unit 0.1ms. |
ErrorCode mynteye::Camera::SetControlProperty | ( | const ControlProperty & | prop, |
std::int32_t | value | ||
) |
Sets control property value.
prop | the control property, see ControlProperty. |
value | the control property value. |
void mynteye::Camera::SetMode | ( | const Mode & | mode | ) |
Sets framerate & IMU frequency.
void mynteye::Camera::SetScale | ( | float | scale | ) |
Sets scale factor to the grabbed images.
scale | the scale factor. |