Update api doc

This commit is contained in:
John Zhao 2018-04-03 23:27:17 +08:00
parent e00740114e
commit 6647599ad4
4 changed files with 52 additions and 17 deletions

View File

@ -91,7 +91,7 @@ ALLOW_UNICODE_NAMES = NO
# Ukrainian and Vietnamese. # Ukrainian and Vietnamese.
# The default value is: English. # The default value is: English.
OUTPUT_LANGUAGE = English OUTPUT_LANGUAGE = Chinese
# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
# descriptions after the members that are listed in the file and class # descriptions after the members that are listed in the file and class
@ -874,7 +874,7 @@ FILE_PATTERNS = *.c \
# be searched for input files as well. # be searched for input files as well.
# The default value is: NO. # The default value is: NO.
RECURSIVE = NO RECURSIVE = YES
# The EXCLUDE tag can be used to specify files and/or directories that should be # The EXCLUDE tag can be used to specify files and/or directories that should be
# excluded from the INPUT source files. This way you can easily exclude a # excluded from the INPUT source files. This way you can easily exclude a

View File

@ -1,4 +1,9 @@
# MYNT EYE SDK {#mainpage} # MYNT EYE SDK {#mainpage}
* @subpage specs_data * API 模块
* @subpage specs_ctrl * \link enumerations 枚举类型\endlink
* \link datatypes 数据类型\endlink
* \link calibration 内参与外参\endlink
* 设备说明
* @subpage specs_data
* @subpage specs_ctrl

View File

@ -11,6 +11,11 @@
MYNTEYE_BEGIN_NAMESPACE MYNTEYE_BEGIN_NAMESPACE
/**
* @defgroup enumerations Enumerations
* @brief Public enumeration types.
*/
/** /**
* @ingroup enumerations * @ingroup enumerations
* @brief Streams define different type of data. * @brief Streams define different type of data.
@ -90,7 +95,7 @@ enum class Info : std::uint8_t {
/** /**
* @ingroup enumerations * @ingroup enumerations
* Camera control options define general configuration controls. * @brief Camera control options define general configuration controls.
*/ */
enum class Option : std::uint8_t { enum class Option : std::uint8_t {
/** Image gain, setting it if manual-exposure */ /** Image gain, setting it if manual-exposure */
@ -156,29 +161,38 @@ MYNTEYE_ENUM_HELPERS(Option)
#undef MYNTEYE_ENUM_HELPERS #undef MYNTEYE_ENUM_HELPERS
/** Video stream intrinsics */ /**
* @defgroup calibration Intrinsics & Extrinsics
* @brief Intrinsic and extrinsic properties.
*/
/**
* @ingroup calibration
* Video stream intrinsics.
*/
struct Intrinsics { struct Intrinsics {
/** width of the image in pixels */ /** width of the image in pixels */
std::uint16_t width; std::uint16_t width;
/** height of the image in pixels */ /** height of the image in pixels */
std::uint16_t height; std::uint16_t height;
//@{ /** focal length of the image plane, as a multiple of pixel width */
/** focal length expressed in pixels */
double fx; double fx;
/** focal length of the image plane, as a multiple of pixel height */
double fy; double fy;
//@} /** horizontal coordinate of the principal point of the image */
//@{
/** principal point that is usually at the image center */
double cx; double cx;
/** vertical coordinate of the principal point of the image */
double cy; double cy;
//@}
/** distortion model of the image */ /** distortion model of the image */
std::uint8_t model; std::uint8_t model;
/** distortion coefficients: k1,k2,p1,p2,k3 */ /** distortion coefficients: k1,k2,p1,p2,k3 */
double coeffs[5]; double coeffs[5];
}; };
/** IMU sensor intrinsics: scale, drift and variances */ /**
* @ingroup calibration
* IMU sensor intrinsics: scale, drift and variances.
*/
struct ImuSensorIntrinsics { struct ImuSensorIntrinsics {
/** /**
* Scale X cross axis cross axis * Scale X cross axis cross axis
@ -195,21 +209,33 @@ struct ImuSensorIntrinsics {
double bias[3]; double bias[3];
}; };
/** IMU intrinsics, including accelerometer and gyroscope */ /**
* @ingroup calibration
* IMU intrinsics, including accelerometer and gyroscope.
*/
struct ImuIntrinsics { struct ImuIntrinsics {
ImuSensorIntrinsics accel; ImuSensorIntrinsics accel;
ImuSensorIntrinsics gyro; ImuSensorIntrinsics gyro;
}; };
/** /**
* Cross-stream extrinsics, represent how the different devices are connected * @ingroup calibration
* Cross-stream extrinsics, represent how the different devices are connected.
*/ */
struct Extrinsics { struct Extrinsics {
double rotation[3][3]; /**< rotation matrix */ double rotation[3][3]; /**< rotation matrix */
double translation[3]; /**< translation vector */ double translation[3]; /**< translation vector */
}; };
/** Image data */ /**
* @defgroup datatypes Datatypes
* @brief Public data types.
*/
/**
* @ingroup datatypes
* Image data.
*/
struct ImgData { struct ImgData {
/** Image frame id */ /** Image frame id */
std::uint16_t frame_id; std::uint16_t frame_id;
@ -219,7 +245,10 @@ struct ImgData {
std::uint16_t exposure_time; std::uint16_t exposure_time;
}; };
/** IMU data */ /**
* @ingroup datatypes
* IMU data.
*/
struct ImuData { struct ImuData {
/** Image frame id */ /** Image frame id */
std::uint16_t frame_id; std::uint16_t frame_id;

View File

@ -122,6 +122,7 @@ class Type {
}; };
/** /**
* @ingroup datatypes
* Device infomation. * Device infomation.
*/ */
struct DeviceInfo { struct DeviceInfo {