How to read data from matrix

Hi everybody,

Now, I have a 3x3 matrix homography of datatype vx_matrix. And I don’t know how to query elements of this matrix. Can you help me?

Hi,

I use the following code to display the matrix values:

// Access Matrix data
void *mat;
vx_float32 *data = (vx_float32*)mat;
vxCopyMatrix(H, mat, VX_READ_ONLY, VX_MEMORY_TYPE_HOST);
for (int i = 0; i <9; i++){
    std::cout << "Matrix Data : " << *(data+i) << std::endl;
}

Thank you so much.

I have performed my this work.