Ask Your Question
0

About umat

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

wuling gravatar image

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

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

Comments

Those matrices are getting created on the GPU side.

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

GPU vaiable is gpumat, isn't?!

wuling gravatar imagewuling ( 2014-10-14 02:12:54 -0600 )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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

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

Antonio gravatar image

How to convert Mat to UMat: http://stackoverflow.com/a/27530966/2...

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 12,414 times

Last updated: Jan 15 '15