Added .py to approach a problem of normalization of image inputs
Basic rescaling is not robust in general so i have added another option to normalize inputs. Choose this option if the inputs are differently sized.
Basically, the algorithm is the following:
-
align_image_to_center_of_plot.py
iterates through the available data inputs in a directory -
Loads and stores image sizes in a list of tuples as width and height
-
Chooses the highest WIDTH and HEIGHT found
-
Creates a canvas without axes with the appropriate sizes, where X - WIDTH, Y - HEIGHT
-
Plots an image to the exact center of a canvas with cmap='Greys' (greyscaled color map)
-
Saves an image.jpg with the appropriate sizes
-
Repeats until deadend. Prints runtime
Downside: really memory-consuming