Type Definition opencv::types::PtrOfSelectiveSearchSegmentation
source · [−]pub type PtrOfSelectiveSearchSegmentation = Ptr<dyn SelectiveSearchSegmentation>;
Implementations
sourceimpl PtrOfSelectiveSearchSegmentation
impl PtrOfSelectiveSearchSegmentation
pub fn as_raw_PtrOfSelectiveSearchSegmentation(&self) -> *const c_void
pub fn as_raw_mut_PtrOfSelectiveSearchSegmentation(&mut self) -> *mut c_void
Trait Implementations
sourceimpl AlgorithmTraitConst for PtrOfSelectiveSearchSegmentation
impl AlgorithmTraitConst for PtrOfSelectiveSearchSegmentation
fn as_raw_Algorithm(&self) -> *const c_void
sourcefn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
sourcefn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings Stores algorithm parameters in a file storage Read more
sourcefn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
sourcefn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more
sourcefn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more
sourceimpl SelectiveSearchSegmentation for PtrOfSelectiveSearchSegmentation
impl SelectiveSearchSegmentation for PtrOfSelectiveSearchSegmentation
fn as_raw_mut_SelectiveSearchSegmentation(&mut self) -> *mut c_void
sourcefn set_base_image(&mut self, img: &dyn ToInputArray) -> Result<()>
fn set_base_image(&mut self, img: &dyn ToInputArray) -> Result<()>
Set a image used by switch* functions to initialize the class Read more
sourcefn switch_to_single_strategy(&mut self, k: i32, sigma: f32) -> Result<()>
fn switch_to_single_strategy(&mut self, k: i32, sigma: f32) -> Result<()>
Initialize the class with the ‘Single stragegy’ parameters describled in uijlings2013selective. Read more
sourcefn switch_to_selective_search_fast(
&mut self,
base_k: i32,
inc_k: i32,
sigma: f32
) -> Result<()>
fn switch_to_selective_search_fast(
&mut self,
base_k: i32,
inc_k: i32,
sigma: f32
) -> Result<()>
Initialize the class with the ‘Selective search fast’ parameters describled in uijlings2013selective. Read more
sourcefn switch_to_selective_search_quality(
&mut self,
base_k: i32,
inc_k: i32,
sigma: f32
) -> Result<()>
fn switch_to_selective_search_quality(
&mut self,
base_k: i32,
inc_k: i32,
sigma: f32
) -> Result<()>
Initialize the class with the ‘Selective search fast’ parameters describled in uijlings2013selective. Read more
sourcefn add_image(&mut self, img: &dyn ToInputArray) -> Result<()>
fn add_image(&mut self, img: &dyn ToInputArray) -> Result<()>
Add a new image in the list of images to process. Read more
sourcefn clear_images(&mut self) -> Result<()>
fn clear_images(&mut self) -> Result<()>
Clear the list of images to process
sourcefn add_graph_segmentation(&mut self, g: Ptr<dyn GraphSegmentation>) -> Result<()>
fn add_graph_segmentation(&mut self, g: Ptr<dyn GraphSegmentation>) -> Result<()>
Add a new graph segmentation in the list of graph segementations to process. Read more
sourcefn clear_graph_segmentations(&mut self) -> Result<()>
fn clear_graph_segmentations(&mut self) -> Result<()>
Clear the list of graph segmentations to process;
sourcefn add_strategy(
&mut self,
s: Ptr<dyn SelectiveSearchSegmentationStrategy>
) -> Result<()>
fn add_strategy(
&mut self,
s: Ptr<dyn SelectiveSearchSegmentationStrategy>
) -> Result<()>
Add a new strategy in the list of strategy to process. Read more
sourcefn clear_strategies(&mut self) -> Result<()>
fn clear_strategies(&mut self) -> Result<()>
Clear the list of strategy to process;