Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Store Histogram Values using SparseMat

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?