- Use Python multiprocessing to speed up patch creation.
- Replace os with pathlib module.
- Added argparse support.
- Rewrote patch processing code using vector operations.
- Fully documented all functions and methods with docstrings and type hints.
- Compute image means and standard deviations for normalization online.
- Increased efficiency of code by rewriting code.