statismoModelFromRepresenter: generate model from a representer using gaussian kernels

Description Usage Arguments Value Examples

View source: R/statismoModelFromRepresenter.r

Description

generate model from a representer using gaussian kernels

Usage

1
2
statismoModelFromRepresenter(representer, kernel = GaussianKernel(100, 50),
  ncomp = 10, nystroem = 500)

Arguments

representer

mesh3d or matrix used as representer

kernel

an object of class matrixKernel

ncomp

integer: number of PCs to approximate

nystroem

number of samples to compute Nystroem approximation of eigenvectors

Value

returns a shape model of class pPCA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
require(Rvcg)
data(humface)
kernel1 <- GaussianKernel(80,50)
kernel2 <- GaussianKernel(20,20)
combinedKernel <- SumKernels(kernel1,kernel2)
hummodel <- statismoModelFromRepresenter(humface,combinedKernel)
## Not run: 
require(rgl)
for (i in 1:5) wire3d(DrawSample(hummodel),col=i)

## End(Not run)

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