4. A. A. Sirota, M. A. Dryuchenko Generalized image compression algorithms for arbitrarily-shaped fragments and their implementation using artificial neural networks