[TX1 - Visionworks] Object reference in visionworks

Hi guys,
Im implementing computer vision algorithms on Jetson TX1 by Nvidia Visionworks. There are some ambiguous points that I still haven’t clear yet.
I wonder that what difference between vx_matrix mat_ and vx_matrix mat_ = vxCreateMatrix( context, 3, 3, VX_TYPE_FLOAT32 );
Thanks in advance!

Best Regards,
Trung.

Hi,

vx_matrix mat_ is to create mat_ variable.

vx_matrix mat_ = vxCreateMatrix( context, 3, 3, VX_TYPE_FLOAT32 ) is to

  1. create mat_ variable
  2. create a 3x3 matrix with type=float32
  3. Assign the matrix pointer to the mat_

Thanks.