affine-scidbst-methods: Handling for the affine transformation on scidb(st) arrays

Description Usage Arguments Value Examples

Description

Returns the affine transformation as a 2x3 matrix (x0,xres(x),xshear(x) \ y0, yshear(x), yres(x)) or sets the affine transformation for a scidb or scidbst object.

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'scidbst'
affine(x)

## S4 replacement method for signature 'scidbst,matrix'
affine(x) <- value

## S4 replacement method for signature 'scidb,matrix'
affine(x) <- value

Arguments

x

scidbst object

Value

a numeric matrix containing the affine transformation parameter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
 # Getter
 .scidbst = scidbst("ref_array")
 aff.trans = affine(.scidbst)

 # Setter
 .scidb = scidb("an_array")
 m = matrix(c(1000,1,0, 1000,0,1),byrow=TRUE,nc=3,nr=2)
 affine(.scidb) <- m


## End(Not run)

flahn/scidbst documentation built on May 16, 2019, 1:15 p.m.