Calculating features (area, compactness), classification based on minimal area and minimal compactness.