First time here? Check out the FAQ!
answered 2017-01-16 21:31:58 -0600
Well, here's the code, so knock yourself out.
https://github.com/opencv/opencv/blob/07004a46ca903d99e54bcdedcef882b929fe1a0b/modules/imgproc/src/featureselect.cpp#L358