added optional inclusion of pixels with invalid depth data and a heightCorrection parameter for the final ROI