This vector::reserve() call should probably be made in getPatchDepthImage(), since that is where the data is pushed into it.