Struct opencv::optflow::GPCTrainingParams
source · #[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: u32
Maximum tree depth to stop partitioning.
min_number_of_samples: i32
Minimum number of samples in the node to stop partitioning.
descriptor_type: i32
Type of descriptors to use.
print_progress: bool
Print progress to stdout.
Implementations§
source§impl GPCTrainingParams
impl GPCTrainingParams
pub fn check(self) -> Result<bool>
sourcepub 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§
source§impl Clone for GPCTrainingParams
impl Clone for GPCTrainingParams
source§fn clone(&self) -> GPCTrainingParams
fn clone(&self) -> GPCTrainingParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more