feat(img params): prepare data format

This commit is contained in:
TinyOh
2019-01-04 09:55:30 +08:00
parent 667c53ae6d
commit 49e65f8060
4 changed files with 132 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#include "mynteye/mynteye.h"
#include "mynteye/types.h"
#include "mynteye/device.h"
MYNTEYE_BEGIN_NAMESPACE
@@ -201,6 +202,11 @@ class MYNTEYE_API API {
* Get the extrinsics from one stream to motion.
*/
Extrinsics GetMotionExtrinsics(const Stream &from) const;
/**
* Get the intrinsics of stream.
*/
template<typename T>
T GetIntrinsics(const Stream &from) const;
/**
* Log all option infos.
@@ -304,6 +310,18 @@ class MYNTEYE_API API {
void CheckImageParams();
};
template <typename T>
T API::GetIntrinsics(const Stream &from) const {
return device_->GetIntrinsics<T>(from);
}
template <typename T>
T Device::GetIntrinsics(const Stream &from) const {
T res;
printf("type %d\n", res.calib_model_);
return res;
}
MYNTEYE_END_NAMESPACE
#endif // MYNTEYE_API_API_H_