I'm trying to threshold and invert an image with Cinder OpenCV block. In openFrameworks I would use something like that:
someImage.threshold(230, true);
...where true is the parameter to specify to threshold and invert.
In Cinder I'm trying the following:
cv::threshold (input, threshNear, 230, 255, CV_THRESH_BINARY_INV);
... that doesn't work, or
cv::threshold (input, threshNear, 100, 255, CV_8U);
cv::invert ( threshNear, threshNearInverted);
...that produces and error and let the program stuck.
Any suggestion?