useOutsideDepth uses the range between minDepth and maxDepth to filter depth.
Set useOutsideDepth to true to only return object depth outside that range.
Set useOutsideDepth to false to only return object depth within that range. It is false by default.