cutMatrix: Cut Matrix

Description Usage Arguments Value Author(s) Examples

View source: R/cutMatrix.r

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

1
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 [email protected].

Examples

1
2
3
4
5
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)

PET documentation built on May 2, 2019, 2:43 a.m.