Finding the median value of an RGB image in OpenCV? -
is there easy way of finding median value of rgb image in opencv using c? in matlab can extract arrays corresponding 3 channels , compute median values each of arrays median(median(array))
. finally, median value of these 3 medians (for 3 channels) can calculated final median value.
you can convert matrix histogram via calchist
function (once each channel), calculate median given channel using function available here.
note: have not tested linked code, should @ least give idea of how started.
Comments
Post a Comment