cutMatrix {PET} | R Documentation |
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.
cutMatrix(A, mode = "col")
A |
Describe the matrix. |
mode |
The default is set to |
A |
The cut off matrix. |
dimOrg |
The dimension of the original image. |
pattern |
A pattern, contains the first and last column or row of |
Joern Schulz jschulz78@web.de.
A <- matrix(c(rep(0,6),0:2,0,3,4,rep(0,4),5,6,rep(0,9)),nrow=3) A cutMatrix(A) cutMatrix(A,mode="row") rm(A)