def center_from_X_3x8(X_3x8):
	"""
	Computes the center of the 3D bounding box with corners (FBL FBR RBR RBL FTL FTR RTR RTL) in
	the X_3x8 matrix.

	Input:
		X_3x8: matrix with 3D coordinates of a 3D bounding box corners ordered (FBL FBR RBR RBL FTL
		       FTR RTR RTL)
	Returns:
		BBC_3x1 matrix with coordinates of the center
	"""
	BBC_3x1 = (X_3x8[:,0] + X_3x8[:,6]) / 2.0

	return BBC_3x1