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
sourceimpl 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
sourceimpl Clone for GPCTrainingParams
impl Clone for GPCTrainingParams
sourcefn clone(&self) -> GPCTrainingParams
fn clone(&self) -> GPCTrainingParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GPCTrainingParams
impl Debug for GPCTrainingParams
sourceimpl PartialEq<GPCTrainingParams> for GPCTrainingParams
impl PartialEq<GPCTrainingParams> for GPCTrainingParams
sourcefn eq(&self, other: &GPCTrainingParams) -> bool
fn eq(&self, other: &GPCTrainingParams) -> bool
impl Copy for GPCTrainingParams
impl StructuralPartialEq for GPCTrainingParams
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more