| CompositeIndexParams Constructor (Int32, Int32, Int32, FlannCentersInit, Single) |
Namespace:
OpenCvSharp.Flann
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public CompositeIndexParams(
int trees = 4,
int branching = 32,
int iterations = 11,
FlannCentersInit centersInit = FlannCentersInit.Random,
float cbIndex = 0.2f
)
Public Sub New (
Optional trees As Integer = 4,
Optional branching As Integer = 32,
Optional iterations As Integer = 11,
Optional centersInit As FlannCentersInit = FlannCentersInit.Random,
Optional cbIndex As Single = 0.2F
)
public:
CompositeIndexParams(
int trees = 4,
int branching = 32,
int iterations = 11,
FlannCentersInit centersInit = FlannCentersInit::Random,
float cbIndex = 0.2f
)
new :
?trees : int *
?branching : int *
?iterations : int *
?centersInit : FlannCentersInit *
?cbIndex : float32
(* Defaults:
let _trees = defaultArg trees 4
let _branching = defaultArg branching 32
let _iterations = defaultArg iterations 11
let _centersInit = defaultArg centersInit FlannCentersInit.Random
let _cbIndex = defaultArg cbIndex 0.2f
*)
-> CompositeIndexParams
Parameters
- trees (Optional)
- Type: SystemInt32
The number of parallel kd-trees to use. Good values are in the range [1..16] - branching (Optional)
- Type: SystemInt32
The branching factor to use for the hierarchical k-means tree - iterations (Optional)
- Type: SystemInt32
The maximum number of iterations to use in the k-means clustering stage when building the k-means tree. A value of -1 used here means that the k-means clustering should be iterated until convergence - centersInit (Optional)
- Type: OpenCvSharp.FlannFlannCentersInit
The algorithm to use for selecting the initial centers when performing a k-means clustering step. - cbIndex (Optional)
- Type: SystemSingle
This parameter (cluster boundary index) influences the way exploration is performed in the hierarchical kmeans tree. When cb_index is zero the next kmeans domain to be explored is choosen to be the one with the closest center. A value greater then zero also takes into account the size of the domain.
See Also