Calculate mode in OpenCV
Hi guys, Do you know how is the best and simply way to calculate the mode of a matrix?? For example in this matrix: [1 1 2 2 3 3 3 3] The mode is 3... How can I calculate it? THANKS!!!!
Hi guys, Do you know how is the best and simply way to calculate the mode of a matrix?? For example in this matrix: [1 1 2 2 3 3 3 3] The mode is 3... How can I calculate it? THANKS!!!!
Asked: 2015-01-21 07:30:21 -0600
Seen: 592 times
Last updated: Jan 21 '15
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images
compile error in opencv2/flann/lsh_table.h when compiling bgslibrary
Do you know the maximum value? Then you could build a histogram. The index having the most values is the mode.