Esempio n. 1
0
 def createIndex(self):
     ''' This function creates indexes of feature '''
     matcher = Matcher(self.method, width=self.w, height=self.h)
     if self.method != 'BOW':
         for i in range(self.numLocations):
             matcher.setDirectory('map/' + str(i))
             if self.method != 'Color':
                 self.indices[i] = matcher.createFeatureIndex()
             else:
                 self.indices[i] = matcher.createColorIndex()
     else:
         matcher.writeIndices()
Esempio n. 2
0
 def createIndex(self):
     """
     Create the color or feature indices, depending on the method.
     """
     matcher = Matcher(self.method, width=self.w, height=self.h)
     if self.method != 'BOW':
         for i in range(self.numLocations):
             matcher.setDirectory('map/' + str(i))
             if self.method != 'Color':
                 self.indices[i] = matcher.createFeatureIndex()
             else:
                 self.indices[i] = matcher.createColorIndex()
     else:
         matcher.writeIndices()