In opencv a function takes a mask array as std::vector<char>
.
another method returns a std::vector<uchar>
as a mask.
internally its using the mask to do
if(mask[i])
{
}
now, is there a way to cast std::vector<uchar>
to std::vector<char>
without having to loop over the array and the if statemetn will still hold?