Image processing algorithms in machine learning