matCrop: matrix crop

Description Usage Arguments Value Author(s) Examples

Description

crop matrix to specific region

Usage

1
matCrop(mat, bndRow, bndCol)

Arguments

mat

matrix

bndRow

c(px1,px2) horizontal boundaries for croping in pixels

bndCol

c(px1,px2) vertical boundaries for croping in pixels

Value

list(pxRow, pxCol, mat) cropped matrix with croped horizontal and vertical scale

Author(s)

K. Juraic

Examples

1
2
3
4
m <- matrix(1:100,nrow = 10, ncol = 10, byrow = TRUE)
crop_px_h <- c(2,8)
crop_px_v <- c(3,6)
matCrop(m,crop_px_h,crop_px_v)

kjuraic/rsaxs documentation built on May 20, 2019, 10:26 a.m.