template<class T>
Indicates whether the given two one-dimensional segments overlap anywhere. The segments are (start1,end1) and (start2,end2). Definition at line 17 of file OverlapsAnywhere1d.h. Referenced by Impala::Core::VideoSet::Mpeg7Doc::FindShots(). 00018 { 00019 if ((start1 >= start2) && (start1 <= end2)) 00020 return true; 00021 if ((end1 >= start2) && (end1 <= end2)) 00022 return true; 00023 if ((start2 >= start1) && (start2 <= end1)) 00024 return true; 00025 return false; 00026 }
|