A distributed approach to 3D scene recognition