[−][src]Trait opencv::tracking::TrackerSamplerCSCTrait
TrackerSampler based on CSC (current state centered), used by MIL algorithm TrackerMIL
Required methods
fn as_raw_TrackerSamplerCSC(&self) -> *const c_void
fn as_raw_mut_TrackerSamplerCSC(&mut self) -> *mut c_void
Provided methods
fn set_mode(&mut self, sampling_mode: i32) -> Result<()>
Set the sampling mode of TrackerSamplerCSC
Parameters
- samplingMode: The sampling mode
The modes are:
- "MODE_INIT_POS = 1" -- for the positive sampling in initialization step
- "MODE_INIT_NEG = 2" -- for the negative sampling in initialization step
- "MODE_TRACK_POS = 3" -- for the positive sampling in update step
- "MODE_TRACK_NEG = 4" -- for the negative sampling in update step
- "MODE_DETECT = 5" -- for the sampling in detection step