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?