Tool/software: Linux
I am working on an application using opencv with "ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15", and I found the threshold() would be crashed by the libtbb.so(found this by coredump!). Then I replace it by that in "ti-processor-sdk-linux-rt-am57xx-evm-04.02.00.09", all is fine.
**BUT** there are some interesting things
1. While I run the application in the command line, the program crashed. While it managed by systemctl is fine.
2. the threshold() crashed when the input image is large(say 640x480), but it works fine when the input image is small(say 320x240)
here's my test code
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
int main() {
cv::Mat img(640, 480, CV_8UC1);
cv::Mat bin;
cv::randu(img, 0, 255);
std::cout << img << std::endl;
cv::threshold(img, bin, 0, 255, cv::THRESH_OTSU | cv::THRESH_BINARY);
std::cout << bin << std::endl;
return 0;
}
I'm not sure whether is the bug in my application or in the implementation of opencv, Anyone can give me a hand? Thanks
REGARDS!