cutMatrix {PET} | R Documentation |
Cut Matrix
Description
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. |
Author(s)
Joern Schulz jschulz78@web.de.
Examples
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)
[Package
PET version 0.4.6
Index]