Ask Your Question
0

How to access GpuMat members if its vector is created?

asked 2015-04-15 04:38:54 -0600

SanjayMK gravatar image

updated 2015-04-15 04:53:04 -0600

Hello,

I am creating a vector of GpuMat in a C++ program. After creating it, I wanted to access GpuMat's members, but I am not able to. Could you please help me do so?

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-04-16 11:12:14 -0600

littlie gravatar image

Did you use the vector notation of accessing elements.

Suppose the vector, vec consists of 2 elements and you want to access the second GpuMat:
GpuMat g = vec[1];

I am assuming by members you mean individual element of vector.

edit flag offensive delete link more

Comments

I might think he wants individual values of the GpuMat elements?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-04-17 06:56:26 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-15 04:38:54 -0600

Seen: 254 times

Last updated: Apr 16 '15