How to recast mat as const
This is probably a C++ question but I can't find it there either. I have a sparseMat that I want to recast as a const sparseMat so I can use SparseMatConstIterator. The examples are all for this and --operator seems to not be available for SparseMatIterator.
Is const_cast what you're looking for?