N-D Mats (e.g. NHWC batches from Python) were silently processed as a garbage 2D image by remap() and warpPerspective(). Check src dims up front and raise a descriptive error instead. Fixes #29589