Пример #1
0
// SmoothingFactor returns the current smoothing factor being used if smoothing
// is turned on. A higher value will have smoother results. The default value
// is 0.5.
func (skeleton *Skeleton) SmoothingFactor() float32 {

	var value C.float

	C.getObjParamFloat((C.gpointer)(skeleton.skeleton), C.CString("smoothing-factor"), &value)

	return float32(value)
}
Пример #2
0
// TorsoMinimumNumberNodes returns the current minimun number of nodes required
// for a component to be considered a torso. The default value is 16.
func (skeleton *Skeleton) TorsoMinimumNumberNodes() float32 {

	var value C.float

	C.getObjParamFloat((C.gpointer)(skeleton.skeleton), C.CString("torso-minimum-number-nodes"), &value)

	return float32(value)
}
Пример #3
0
// ShouldersSearchStep returns the step used when searching for shoulders. The
// default value is 0.01.
func (skeleton *Skeleton) ShouldersSearchStep() float32 {

	var value C.float

	C.getObjParamFloat((C.gpointer)(skeleton.skeleton), C.CString("shoulders-search-step"), &value)

	return float32(value)
}