Marginal Space Learning for Medical Image Analysis