refactor(intrinsics): adjust intrinsics types
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
@@ -366,6 +365,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_
|
||||
|
||||
Reference in New Issue
Block a user