Project pointcloud before calculating histogram