Ask Your Question

About umat

asked 2014-10-14 01:44:51 -0500

wuling gravatar image

updated 2014-10-14 02:10:58 -0500

Hi all: Could someone tell me why to define an variable "umat"? The reasonn is ........??? How to convert mat <---> UMat and vector<mat> <---> vector<umat> ?? thanks!!

edit retag flag offensive close merge delete


Those matrices are getting created on the GPU side.

itay gravatar imageitay ( 2014-10-14 02:09:37 -0500 )edit

GPU vaiable is gpumat, isn't?!

wuling gravatar imagewuling ( 2014-10-14 02:12:54 -0500 )edit

@itay In fact, an UMat might be at some point to the GPU, but the point is more than on runtime an OpenCV method will decide to process an UMat on CPU or GPU depending on the availability, for example, of an OpenCL implementation of that method.

Antonio gravatar imageAntonio ( 2015-01-15 04:12:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-15 04:19:18 -0500

Antonio gravatar image

How to convert Mat to UMat:

edit flag offensive delete link more

Question Tools


Asked: 2014-10-14 01:44:51 -0500

Seen: 11,545 times

Last updated: Jan 15 '15