Changed filterContours interface, added TrainedSet stub