imagecluster.io.read_images

imagecluster.io.read_images(imagedir, size, ncores=4)[source]

Load images from imagedir and resize to size.

Parameters:

imagedir : str

size : sequence length 2

(width, height), used in Image.open(filename).resize(size)

ncores : int

run that many parallel processes

Returns:

dict

{filename: 3d array (height, width, 3), …}