test: this a first test whether it is possible to call SimpleITK...

Description Usage Arguments Value Examples

View source: R/test.r

Description

this a first test whether it is possible to call SimpleITK via Rcpp. It simply shows how to change the origin of a sitk::Image using SimpleITK's C++ interface.

Usage

1
test(image, origin = NULL)

Arguments

image

image of class

origin

vector of length image$GetDimension()

Value

returns the image dimension

Examples

1
2
3
4
require(SimpleITK)
img <- Image(10,10,10,"sitkInt8")
img <-test(img,1:3)
print(img$GetOrigin())

zarquon42b/RcppSimpleITK documentation built on May 4, 2019, 9:09 p.m.