Struct opencv::optflow::GPCTrainingParams [−][src]
#[repr(C)]pub struct GPCTrainingParams {
pub max_tree_depth: u32,
pub min_number_of_samples: i32,
pub descriptor_type: i32,
pub print_progress: bool,
}Expand description
Class encapsulating training parameters.
Fields
max_tree_depth: u32Maximum tree depth to stop partitioning.
min_number_of_samples: i32Minimum number of samples in the node to stop partitioning.
descriptor_type: i32Type of descriptors to use.
print_progress: boolPrint progress to stdout.
Implementations
pub fn new(
_max_tree_depth: u32,
_min_number_of_samples: i32,
_descriptor_type: GPCDescType,
_print_progress: bool
) -> Result<GPCTrainingParams>
pub fn new(
_max_tree_depth: u32,
_min_number_of_samples: i32,
_descriptor_type: GPCDescType,
_print_progress: bool
) -> Result<GPCTrainingParams>
C++ default parameters
- _max_tree_depth: 20
- _min_number_of_samples: 3
- _descriptor_type: GPC_DESCRIPTOR_DCT
- _print_progress: true
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for GPCTrainingParams
impl Send for GPCTrainingParams
impl Sync for GPCTrainingParams
impl Unpin for GPCTrainingParams
impl UnwindSafe for GPCTrainingParams
Blanket Implementations
Mutably borrows from an owned value. Read more