1 | initial version |
It appears there was two separate issues. The Bus error was caused by this line of code
if (scaled.at<double>(x, y) > AppUtils::BLACK_CUTOFF)
Because Mat::at returns a reference rather than the actual value, it seems that the comparison did not work the same way on a computer with the ARM arhitecture. As for the Assertion failed, it appears that is due to a buggy camera driver (probably).
2 | No.2 Revision |
It appears there was two separate issues. The Bus error was caused by this line of code
if (scaled.at<double>(x, y) > AppUtils::BLACK_CUTOFF)
Because Mat::at returns a reference rather than the actual value, it seems that the comparison did not work the same way on a computer with the ARM arhitecture.
arhitecture. I added
double pixel = scaled.at<double>(x, y);
to make sure the value was compared, rather then the address. As for the Assertion failed, it appears that is due to a buggy camera driver (probably).