@ -186,7 +186,7 @@ namespace
}
BufferPool pool ( stream ) ;
GpuMat objectsBuf = pool . getBuffer ( 1 , maxNumObjects_ , Data Type< Rect > : : typ e) ;
GpuMat objectsBuf = pool . getBuffer ( 1 , maxNumObjects_ , traits : : Type < Rect > : : valu e) ;
unsigned int numDetections ;
ncvSafeCall ( process ( image , objectsBuf , ncvMinSize , numDetections ) ) ;
@ -220,7 +220,7 @@ namespace
}
CV_Assert ( gpu_objects . rows = = 1 ) ;
CV_Assert ( gpu_objects . type ( ) = = Data Type< Rect > : : typ e ) ;
CV_Assert ( gpu_objects . type ( ) = = traits : : Type < Rect > : : valu e ) ;
Rect * ptr = gpu_objects . ptr < Rect > ( ) ;
objects . assign ( ptr , ptr + gpu_objects . cols ) ;
@ -533,7 +533,7 @@ namespace
const float grouping_eps = 0.2f ;
BufferPool pool ( stream ) ;
GpuMat objects = pool . getBuffer ( 1 , maxNumObjects_ , Data Type< Rect > : : typ e) ;
GpuMat objects = pool . getBuffer ( 1 , maxNumObjects_ , traits : : Type < Rect > : : valu e) ;
// used for debug
// candidates.setTo(cv::Scalar::all(0));
@ -625,7 +625,7 @@ namespace
}
CV_Assert ( gpu_objects . rows = = 1 ) ;
CV_Assert ( gpu_objects . type ( ) = = Data Type< Rect > : : typ e ) ;
CV_Assert ( gpu_objects . type ( ) = = traits : : Type < Rect > : : valu e ) ;
Rect * ptr = gpu_objects . ptr < Rect > ( ) ;
objects . assign ( ptr , ptr + gpu_objects . cols ) ;