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

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -