2014-04-02 05:16:18 -0600 | commented question | Need help converting from Python api to C api I am restricted to using C. |
2014-04-01 23:10:11 -0600 | received badge | ● Editor (source) |
2014-04-01 23:09:20 -0600 | asked a question | Need help converting from Python api to C api I need to download an image and measure it's contrast. I have some Python code which does what I need, but now I need to convert it to C, so that I can use it from other languages which do not have OpenCV bindings. This is the Python version: This is what I have so far. But I can't get the pixel count to tally properly. It always returns the value height x width, instead of only the count of white pixels, like the Python version does. |