How to recast mat as const

asked 2016-04-27 10:25:04 -0500

Ralph058 gravatar image

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.

edit retag flag offensive close merge delete

Comments

Is const_cast what you're looking for?

boaz001 gravatar imageboaz001 ( 2016-04-28 02:56:05 -0500 )edit