Undefined cv::Mat Behavior

I don’t see the variable type for px and u0 - could that be the problem (truncation/coercion)?

Bill