REP-117 mentions that inf and -inf are valid values in depth images. However, dynamic_scaling doesn't currently work when such values are in the image as the cv::minMaxLoc method doesn't expect inf and -inf values (it's fine with nan values).
By using a mask, we can ignore inf and non inf values when calling cv::minMaxLoc.
REP-117 mentions that inf and -inf are valid values in depth images. However, dynamic_scaling doesn't currently work when such values are in the image as the cv::minMaxLoc method doesn't expect inf and -inf values (it's fine with nan values).
By using a mask, we can ignore inf and non inf values when calling
cv::minMaxLoc
.Resolves: #450
Signed-off-by: Kenji Brameld kenjibrameld@gmail.com