Remove points from statismo shape model
20 May 2015I added a new function, called removePointsFromModel
to my RvtkStatismo package to selectively remove coordinates from a statismo shape model.
Here is the example from the documentation:
require(RvtkStatismo)
require(Rvcg)
require(rgl)
data(humface)
hummodel <- statismoModelFromRepresenter(humface,kernel=list(c(50,50)))
hummodel0 <- removePointsFromModel(hummodel,1:1000)
shade3d(DrawSample(hummodel0),col=3)
The last command renders a random sample from the new model (Fig. 1) that now has some holes in it.