Ask Your Question

Revision history [back]

click to hide/show revision 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).

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).