KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am new to opencv and I have a doubt with one of the simplest operations in coding: Passing values to functions. Heres what I want to do, Initialize a cv:Mat in the main function with say, values from 0 to 50. Pass this matrix as an argument to a function foo() which in turn simply prints out the values of each element in the matrix. Thats it. Now I have read in multiple places that when these matrices are passed, it is only the header that gets passed, not the actual data. Then how am I still able to read out the values of this matrix in the called function as if the entire matrix was passed?
Tags (comma-separated)
Save Edits
Cancel