Merge pull request #1810 from Nerei:2.4
This commit is contained in:
commit
cdf4e4e0b5
@ -1075,7 +1075,9 @@ template<typename _Tp> template<int n> inline Mat_<_Tp>::operator Vec<typename D
|
||||
template<typename _Tp> template<int m, int n> inline Mat_<_Tp>::operator Matx<typename DataType<_Tp>::channel_type, m, n>() const
|
||||
{
|
||||
CV_Assert(n % DataType<_Tp>::channels == 0);
|
||||
return this->Mat::operator Matx<typename DataType<_Tp>::channel_type, m, n>();
|
||||
|
||||
Matx<typename DataType<_Tp>::channel_type, m, n> res = this->Mat::operator Matx<typename DataType<_Tp>::channel_type, m, n>();
|
||||
return res;
|
||||
}
|
||||
|
||||
template<typename T1, typename T2, typename Op> inline void
|
||||
|
@ -172,6 +172,9 @@ public:
|
||||
xn::ImageGenerator &imageGenerator;
|
||||
|
||||
private:
|
||||
ApproximateSyncGrabber(const ApproximateSyncGrabber&);
|
||||
ApproximateSyncGrabber& operator=(ApproximateSyncGrabber&);
|
||||
|
||||
int maxBufferSize;
|
||||
bool isCircleBuffer;
|
||||
int maxTimeDuration;
|
||||
@ -215,7 +218,7 @@ private:
|
||||
virtual bool grab( xn::DepthMetaData& depthMetaData,
|
||||
xn::ImageMetaData& imageMetaData )
|
||||
{
|
||||
while(1)
|
||||
for(;;)
|
||||
{
|
||||
if( !isDepthFilled )
|
||||
isDepthFilled = popDepthMetaData(depth);
|
||||
@ -971,7 +974,7 @@ double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )
|
||||
propValue = depthGenerator.GetAlternativeViewPointCap().IsViewPointAs(imageGenerator) ? 1.0 : 0.0;
|
||||
break;
|
||||
case CV_CAP_PROP_POS_MSEC :
|
||||
propValue = depthGenerator.GetTimestamp();
|
||||
propValue = (double)depthGenerator.GetTimestamp();
|
||||
break;
|
||||
case CV_CAP_PROP_POS_FRAMES :
|
||||
propValue = depthGenerator.GetFrameID();
|
||||
@ -1067,10 +1070,10 @@ double CvCapture_OpenNI::getImageGeneratorProperty( int propIdx )
|
||||
propValue = mode.nFPS;
|
||||
break;
|
||||
case CV_CAP_PROP_POS_MSEC :
|
||||
propValue = imageGenerator.GetTimestamp();
|
||||
propValue = (double)imageGenerator.GetTimestamp();
|
||||
break;
|
||||
case CV_CAP_PROP_POS_FRAMES :
|
||||
propValue = imageGenerator.GetFrameID();
|
||||
propValue = (double)imageGenerator.GetFrameID();
|
||||
break;
|
||||
default :
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user