def __init__(self, centroids_path):
     self.feature_images = [util.readGrayIm(path) for path in read_images(centroids_path)]
Exemplo n.º 2
0
 def __init__(self, centroids_path):
     self.feature_images = [
         util.readGrayIm(path) for path in read_images(centroids_path)
     ]
def read_images(images_dir):
    images_files = gb.glob(images_dir + "/*.bmp")
    for iFile in images_files:
        yield util.readGrayIm(iFile)
Exemplo n.º 4
0
def read_images(images_dir):
    images_files = gb.glob(images_dir + "/*.bmp")
    for iFile in images_files:
        yield util.readGrayIm(iFile)