[−][src]Struct opencv::imgproc::Subdiv2D
Implementations
impl Subdiv2D
[src]
pub fn as_raw_Subdiv2D(&self) -> *const c_void
[src]
pub fn as_raw_mut_Subdiv2D(&mut self) -> *mut c_void
[src]
impl Subdiv2D
[src]
pub fn default() -> Result<Subdiv2D>
[src]
creates an empty Subdiv2D object. To create a new empty Delaunay subdivision you need to use the #initDelaunay function.
pub fn new(rect: Rect) -> Result<Subdiv2D>
[src]
creates an empty Subdiv2D object. To create a new empty Delaunay subdivision you need to use the #initDelaunay function.
Overloaded parameters
Parameters
-
rect: Rectangle that includes all of the 2D points that are to be added to the subdivision.
The function creates an empty Delaunay subdivision where 2D points can be added using the function insert() . All of the points to be added must be within the specified rectangle, otherwise a runtime error is raised.
Trait Implementations
impl Boxed for Subdiv2D
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for Subdiv2D
[src]
impl Send for Subdiv2D
[src]
impl Subdiv2DTrait for Subdiv2D
[src]
fn as_raw_Subdiv2D(&self) -> *const c_void
[src]
fn as_raw_mut_Subdiv2D(&mut self) -> *mut c_void
[src]
fn init_delaunay(&mut self, rect: Rect) -> Result<()>
[src]
fn insert(&mut self, pt: Point2f) -> Result<i32>
[src]
fn insert_multiple(&mut self, ptvec: &Vector<Point2f>) -> Result<()>
[src]
fn locate(
&mut self,
pt: Point2f,
edge: &mut i32,
vertex: &mut i32
) -> Result<i32>
[src]
&mut self,
pt: Point2f,
edge: &mut i32,
vertex: &mut i32
) -> Result<i32>
fn find_nearest(&mut self, pt: Point2f, nearest_pt: &mut Point2f) -> Result<i32>
[src]
fn get_edge_list(&self, edge_list: &mut Vector<Vec4f>) -> Result<()>
[src]
fn get_leading_edge_list(
&self,
leading_edge_list: &mut Vector<i32>
) -> Result<()>
[src]
&self,
leading_edge_list: &mut Vector<i32>
) -> Result<()>
fn get_triangle_list(&self, triangle_list: &mut Vector<Vec6f>) -> Result<()>
[src]
fn get_voronoi_facet_list(
&mut self,
idx: &Vector<i32>,
facet_list: &mut Vector<Vector<Point2f>>,
facet_centers: &mut Vector<Point2f>
) -> Result<()>
[src]
&mut self,
idx: &Vector<i32>,
facet_list: &mut Vector<Vector<Point2f>>,
facet_centers: &mut Vector<Point2f>
) -> Result<()>
fn get_vertex(&self, vertex: i32, first_edge: &mut i32) -> Result<Point2f>
[src]
fn get_edge(&self, edge: i32, next_edge_type: i32) -> Result<i32>
[src]
fn next_edge(&self, edge: i32) -> Result<i32>
[src]
fn rotate_edge(&self, edge: i32, rotate: i32) -> Result<i32>
[src]
fn sym_edge(&self, edge: i32) -> Result<i32>
[src]
fn edge_org(&self, edge: i32, orgpt: &mut Point2f) -> Result<i32>
[src]
fn edge_dst(&self, edge: i32, dstpt: &mut Point2f) -> Result<i32>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Subdiv2D
impl !Sync for Subdiv2D
impl Unpin for Subdiv2D
impl UnwindSafe for Subdiv2D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,