Description Usage Arguments Value Examples
View source: R/statismoModelFromRepresenter.r
generate model from a representer using gaussian kernels
1 2 | statismoModelFromRepresenter(representer, kernel = GaussianKernel(100, 50),
ncomp = 10, nystroem = 500)
|
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 |
returns a shape model of class pPCA
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.