Maybe this question has been asked before but I just do not know how this question should be asked
I have the following code. I do not know what is the rationale for the parameter being passed in as const modifiers and then passed into internal constructor.
bool somefunction(const cv::Vec4i& l1_c, const cv::Vec4i& l2_c)
{
cv::Vec4i l1(l1_c), l2(l2_c); // why code it in such a manner?
// what the advantages?
...... other codes but l1 and l2
is used as values ........
}
Isn't it more simple to use as cv::Vec4i& l1c as follows
bool somefunction(cv::Vec4i& l1_c, cv::Vec4i& l2_c)
{
...... other codes and l1_c and l2_c
is used as values .........
}
Regards