refactor(intrinsics): adjust intrinsics types

This commit is contained in:
John Zhao
2019-01-04 11:42:24 +08:00
parent 611468ad90
commit 938dc08654
5 changed files with 70 additions and 107 deletions

View File

@@ -190,6 +190,11 @@ class MYNTEYE_API API {
* 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.
*/
@@ -202,11 +207,6 @@ 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.
@@ -315,13 +315,6 @@ 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_