OpenCV reduce(), can I use median function?
Hi,
I have used the reduce() function often. From time to time I would like to use the median instead of min, max, avg, or sum. E.g I would need CV_REDUCE_MEDIAN.
I looked in the source code but could not find an easy way to accomplish this.
Can anyone help? Best regards, Auke
may be you can use row or col method to copy to a vector and used sort
opencv can sort Mat's too.