Added the linearizeDepth function again. Will need it for the AlchemyAO implementation.
Trying to find a transformation matrix to consider only those points on the semi-hemisphere defined by the point normal vector.