Get a subMatrix from matrix, the function checks if the subMatrix lies within the dimensions of the matrix.
The original matrix from which the subMatrix will be extracted.
Options to define the subMatrix boundaries and duplication behavior.
The subMatrix extracted from the original matrix.
Get a subMatrix from matrix, the function checks if the subMatrix lies within the dimensions of the matrix.