In that case, you should probably note in the code that this differs from Telea's implementation (since this is the reference you give) and note that this normalization is taken from OpenCV.