Merge branch 'develop' of http://gitlab.mynt.com/mynteye/mynt-eye-sdk-2 into develop

This commit is contained in:
TinyOh
2019-01-04 12:01:59 +08:00
5 changed files with 70 additions and 107 deletions

View File

@@ -154,6 +154,11 @@ class MYNTEYE_API Device {
* Get the intrinsics of stream.
*/
Intrinsics GetIntrinsics(const Stream &stream) const;
/**
* Get the intrinsics of stream.
*/
template<typename T>
T GetIntrinsics(const Stream &from) const;
/**
* Get the extrinsics from one stream to another.
*/
@@ -203,12 +208,6 @@ class MYNTEYE_API Device {
*/
void SetMotionExtrinsics(const Stream &from, const Extrinsics &ex);
/**
* Get the intrinsics of stream.
*/
template<typename T>
T GetIntrinsics(const Stream &from) const;
/**
* Log all option infos.
*/
@@ -372,6 +371,13 @@ class MYNTEYE_API Device {
friend tools::DeviceWriter;
};
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_DEVICE_DEVICE_H_