Esempio n. 1
0
    def test_merge_descriptor_sets(self):
        files = ['test_data/seminar.sift', 'test_data/Glass_is_Liquide.sift']

        descriptor_set_list = []
        for f in files:
            descriptor_set = sift_util.load_descriptors(f)
            descriptor_set_list.append(descriptor_set)

        merged_set = sift_util.merge_descriptor_sets(descriptor_set_list)
        self.assertEqual(sift_util.count_descriptors_in_list(files),
                         len(merged_set.sift_descriptor))
Esempio n. 2
0
    def test_merge_descriptor_sets(self):
        files = ['test_data/seminar.sift', 'test_data/Glass_is_Liquide.sift']

        descriptor_set_list = []
        for f in files:
            descriptor_set = sift_util.load_descriptors(f)
            descriptor_set_list.append(descriptor_set)

        merged_set = sift_util.merge_descriptor_sets(descriptor_set_list)
        self.assertEqual(sift_util.count_descriptors_in_list(files),
                         len(merged_set.sift_descriptor))
Esempio n. 3
0
 def test_read_descriptor(self):
     descriptors = sift_util.load_descriptors('test_data/seminar.sift')
     self.assertEqual(1369, len(descriptors.sift_descriptor))
Esempio n. 4
0
 def test_read_descriptor(self):
     descriptors = sift_util.load_descriptors('test_data/seminar.sift')
     self.assertEqual(1369, len(descriptors.sift_descriptor))