For me, always use Mat_. It is convertible to Mat so you can use any OpenCV function waiting for a Mat. You are however not safe for conversions from Mat to Mat_ which can fail at runtime if the types mismatch.
For me, always use Mat_. It is convertible to Mat so you can use any OpenCV function waiting for a Mat. You are however not safe for conversions from Mat to Mat_ which can fail at runtime if the types mismatch.