Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get most often appear number in a cv::Mat

HI,

I want to get the statistics of a cv::Mat, to get the most often appearing numbers. I think I can use histogram, but I am not sure wether there is a more easier way to do this, because to calculate histogram, we need to set number of bins and range before calculate, this is however not robust for me.

Best, waschbaer

How to get most often appear appearing number in a cv::Mat

HI,

I want to get the statistics of a cv::Mat, to get the most often appearing numbers. I think I can use histogram, but I am not sure wether there is a more easier way to do this, because to calculate histogram, we need to set number of bins and range before calculate, this is however not robust for me.

Best, waschbaer

How to get most often appearing number in a cv::Mat

HI,

I want to get the statistics of a cv::Mat, to get the most often appearing numbers. range of numbers(so not a single number, but a range). I think I can use histogram, but I am not sure wether there is a more easier way to do this, because to calculate histogram, we need to set number of bins and range before calculate, this is however not robust for me.

Best, waschbaer