Replacing part of an image

putregion(M, N, row, col) Returns the matrix N inserted into matrix M at row row and column col.

Arguments: