Scale the minimum of a matrix to 0 and cut off the first and the last rows or columns where the added up values are less than \(1e-10\).
Usage
cutMatrix(A, mode = "col")
Arguments
A
Describe the matrix.
mode
The default is set to mode="col" to cut off the first and the last columns of A where the added up columns values are less than \(1e-10\). Alternative choice is mode="row".
Value
A
The cut off matrix.
dimOrg
The dimension of the original image.
pattern
A pattern, contains the first and last column or row of A where the added up values are greater than \(1e-10\).