refactor(intrinsics): adjust intrinsics types
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user