compute method for Feature2D