How to Store Histogram Values using SparseMat

asked 2013-04-27 01:38:38 -0500

wolvican gravatar image

Calculating and storing the dense histogram matrix for my image processing operations is inefficient. ( there is no many differences on the image's color ) For the sake of efficiency, I want to use a sparse matrix. I could not find any example that stores histogram values on sparse matrix.

How can I use a SparseMat for storing histogram values using OpenCV? Please, can you give me a code example or link that I can read?

edit retag flag offensive close merge delete