feat(img params): prepare data format
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user