Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to get the second largest bin in histogram

Hi,

I want to get the second largest bin in hisogram, do you have any idea how to do this? Delete the largest bin is not a desireble solution I think, because it will make a chao in hisogram, like when you try to get the index of second largest bin, and if you delete something, the true index will be +1 or -1.

how to get the second largest bin in histogram

Hi,

I want to get the second largest bin in hisogram, do you have any idea how to do this? Delete the largest bin is not a desireble solution I think, because it will make a chao in hisogram, like when you try to get the index of second largest bin, and if you delete something, the true index will be +1 or -1.

Thank you. Best waschbaer

how to get the second largest bin in histogram

Hi,

I want to get the second largest bin in hisogram, do you have any idea how to do this? Delete the largest bin is not a desireble solution I think, because it will make a chao in hisogram, like when you try to get the index of second largest bin, and if you delete something, the true index will be +1 or -1.

I think I can do something like reorder the histogram by using the inscreasing result of each bin, but not using the primal bins ordering.

Thank you. Best waschbaer

how to get the second largest bin in histogram

Hi,

I want to get the second largest bin in hisogram, do you have any idea how to do this? Delete the largest bin is not a desireble solution I think, because it will make a chao in hisogram, like when you try to get the index of second largest bin, and if you delete something, the true index will be +1 or -1.

I think I can do something like reorder the histogram by using the inscreasing result of each bin, but not using the primal bins ordering.

Or I could also try to find something similar to GetMInMaxValue, which is only for C but not for C++, and get the pointer to an array and set all of them as NaN, then try to calcHist again and do minMaxLoc.

Thank you. Best waschbaer

how to get the second largest bin in histogram

Hi,

I want to get the second largest bin in hisogram, do you have any idea how to do this? Delete the largest bin is not a desireble solution I think, because it will make a chao in hisogram, like when you try to get the index of second largest bin, and if you delete something, the true index will be +1 or -1.

I think I can do something like reorder the histogram by using the inscreasing result of each bin, but not using the primal bins ordering.

Or I could also try to find something similar to GetMInMaxValue, which is only for C but not for C++, and get the pointer to an array and set all of them as NaN, then try to calcHist again and do minMaxLoc.minMaxLoc.

Link to the GetMInMaxValue http://docs.opencv.org/2.4/modules/imgproc/doc/histograms.html

Thank you. Best waschbaer