[][src]Function opencv::rgbd::is_valid_depth

pub fn is_valid_depth(depth: &f32) -> Result<bool>

Checks if the value is a valid depth. For CV_16U or CV_16S, the convention is to be invalid if it is a limit. For a float/double, we just check if it is a NaN

Parameters

  • depth: the depth to check for validity