Checking depth coordinates after downsampling
Librealsense decimation changes the output size and recalculates camera intrinsics. The zero-padded edges can also matter when an application samples by pixel location.
How to test it
Log the image dimensions and intrinsics before and after decimation. Project a feature on a known plane using each frame's own parameters and exclude padding when checking the 3D position.

ZHILIANHAI