test that compares features from a database (samples), with those in an image