mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Added multi-camera feature
This commit is contained in:
@@ -63,6 +63,28 @@ inline bool uIsFinite(const T & value)
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the minimum of the 3 values.
|
||||
* @return the minimum value
|
||||
*/
|
||||
template<class T>
|
||||
inline T uMin3( const T& a, const T& b, const T& c)
|
||||
{
|
||||
float m=a<b?a:b;
|
||||
return m<c?m:c;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the maximum of the 3 values.
|
||||
* @return the maximum value
|
||||
*/
|
||||
template<class T>
|
||||
inline T uMax3( const T& a, const T& b, const T& c)
|
||||
{
|
||||
float m=a>b?a:b;
|
||||
return m>c?m:c;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the maximum of a vector.
|
||||
* @param v the array
|
||||
|
||||
Reference in New Issue
Block a user