Prinicpal component analysis on given 3d points for various bounding boxes