optflow_gpu compilation under ubuntu
authorAnatoly Baksheev <no@email>
Mon, 3 Oct 2011 10:14:59 +0000 (10:14 +0000)
committerAnatoly Baksheev <no@email>
Mon, 3 Oct 2011 10:14:59 +0000 (10:14 +0000)
samples/gpu/opticalflow_nvidia_api.cpp

index 9532636..160e987 100644 (file)
@@ -84,9 +84,9 @@ public:
 };\r
 \r
 template<class T>\r
-NCVStatus CopyData(IplImage *image, Ptr<NCVMatrixAlloc<Ncv32f>> &dst)\r
+NCVStatus CopyData(IplImage *image, Ptr<NCVMatrixAlloc<Ncv32f> >& dst)\r
 {\r
-    dst = Ptr<NCVMatrixAlloc<Ncv32f>> (new NCVMatrixAlloc<Ncv32f> (*g_pHostMemAllocator, image->width, image->height));\r
+    dst = Ptr<NCVMatrixAlloc<Ncv32f> > (new NCVMatrixAlloc<Ncv32f> (*g_pHostMemAllocator, image->width, image->height));\r
     ncvAssertReturn (dst->isMemAllocated (), NCV_ALLOCATOR_BAD_ALLOC);\r
 \r
     unsigned char *row = reinterpret_cast<unsigned char*> (image->imageData);\r
@@ -138,8 +138,8 @@ NCVStatus LoadImages (const char *frame0Name,
                       const char *frame1Name, \r
                       int &width, \r
                       int &height, \r
-                      Ptr<NCVMatrixAlloc<Ncv32f>> &src, \r
-                      Ptr<NCVMatrixAlloc<Ncv32f>> &dst, \r
+                      Ptr<NCVMatrixAlloc<Ncv32f> > &src,\r
+                      Ptr<NCVMatrixAlloc<Ncv32f> > &dst,\r
                       IplImage *&firstFrame, \r
                       IplImage *&lastFrame)\r
 {\r
@@ -403,8 +403,8 @@ int main(int argc, char **argv)
 \r
     int width, height;\r
 \r
-    Ptr<NCVMatrixAlloc<Ncv32f>> src_host;\r
-    Ptr<NCVMatrixAlloc<Ncv32f>> dst_host;\r
+    Ptr<NCVMatrixAlloc<Ncv32f> > src_host;\r
+    Ptr<NCVMatrixAlloc<Ncv32f> > dst_host;\r
 \r
     IplImage *firstFrame, *lastFrame;\r
     if (frame0Name != 0 && frame1Name != 0)\r
@@ -416,10 +416,10 @@ int main(int argc, char **argv)
         ncvAssertReturnNcvStat (LoadImages ("frame10.bmp", "frame11.bmp", width, height, src_host, dst_host, firstFrame, lastFrame));\r
     }\r
 \r
-    Ptr<NCVMatrixAlloc<Ncv32f>> src (new NCVMatrixAlloc<Ncv32f> (*g_pGPUMemAllocator, src_host->width (), src_host->height ()));\r
+    Ptr<NCVMatrixAlloc<Ncv32f> > src (new NCVMatrixAlloc<Ncv32f> (*g_pGPUMemAllocator, src_host->width (), src_host->height ()));\r
     ncvAssertReturn(src->isMemAllocated(), -1);\r
 \r
-    Ptr<NCVMatrixAlloc<Ncv32f>> dst (new NCVMatrixAlloc<Ncv32f> (*g_pGPUMemAllocator, src_host->width (), src_host->height ()));\r
+    Ptr<NCVMatrixAlloc<Ncv32f> > dst (new NCVMatrixAlloc<Ncv32f> (*g_pGPUMemAllocator, src_host->width (), src_host->height ()));\r
     ncvAssertReturn (dst->isMemAllocated (), -1);\r
 \r
     ncvAssertReturnNcvStat (src_host->copySolid ( *src, 0 ));\r