[−][src]Struct opencv::stitching::Detail_SphericalWarper
Warper that maps an image onto the unit sphere located at the origin.
Projects image onto unit sphere with origin at (0, 0, 0) and radius scale, measured in pixels. A 360 panorama would therefore have a resulting width of 2 * scale * PI pixels. Poles are located at (0, -1, 0) and (0, 1, 0) points.
Implementations
impl Detail_SphericalWarper
[src]
pub fn as_raw_Detail_SphericalWarper(&self) -> *const c_void
[src]
pub fn as_raw_mut_Detail_SphericalWarper(&mut self) -> *mut c_void
[src]
impl Detail_SphericalWarper
[src]
pub fn new(scale: f32) -> Result<Detail_SphericalWarper>
[src]
Construct an instance of the spherical warper class.
Parameters
- scale: Radius of the projected sphere, in pixels. An image spanning the whole sphere will have a width of 2 * scale * PI pixels.
Trait Implementations
impl Boxed for Detail_SphericalWarper
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Detail_RotationWarper for Detail_SphericalWarper
[src]
pub fn as_raw_Detail_RotationWarper(&self) -> *const c_void
[src]
pub fn as_raw_mut_Detail_RotationWarper(&mut self) -> *mut c_void
[src]
pub fn warp_point(
&mut self,
pt: Point2f,
k: &dyn ToInputArray,
r: &dyn ToInputArray
) -> Result<Point2f>
[src]
&mut self,
pt: Point2f,
k: &dyn ToInputArray,
r: &dyn ToInputArray
) -> Result<Point2f>
pub fn warp_point_backward(
&mut self,
pt: Point2f,
k: &dyn ToInputArray,
r: &dyn ToInputArray
) -> Result<Point2f>
[src]
&mut self,
pt: Point2f,
k: &dyn ToInputArray,
r: &dyn ToInputArray
) -> Result<Point2f>
pub fn build_maps(
&mut self,
src_size: Size,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
xmap: &mut dyn ToOutputArray,
ymap: &mut dyn ToOutputArray
) -> Result<Rect>
[src]
&mut self,
src_size: Size,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
xmap: &mut dyn ToOutputArray,
ymap: &mut dyn ToOutputArray
) -> Result<Rect>
pub fn warp(
&mut self,
src: &dyn ToInputArray,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
interp_mode: i32,
border_mode: i32,
dst: &mut dyn ToOutputArray
) -> Result<Point>
[src]
&mut self,
src: &dyn ToInputArray,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
interp_mode: i32,
border_mode: i32,
dst: &mut dyn ToOutputArray
) -> Result<Point>
pub fn warp_backward(
&mut self,
src: &dyn ToInputArray,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
interp_mode: i32,
border_mode: i32,
dst_size: Size,
dst: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
src: &dyn ToInputArray,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
interp_mode: i32,
border_mode: i32,
dst_size: Size,
dst: &mut dyn ToOutputArray
) -> Result<()>
pub fn warp_roi(
&mut self,
src_size: Size,
k: &dyn ToInputArray,
r: &dyn ToInputArray
) -> Result<Rect>
[src]
&mut self,
src_size: Size,
k: &dyn ToInputArray,
r: &dyn ToInputArray
) -> Result<Rect>
pub fn get_scale(&self) -> Result<f32>
[src]
pub fn set_scale(&mut self, unnamed: f32) -> Result<()>
[src]
impl Detail_SphericalWarperTrait for Detail_SphericalWarper
[src]
pub fn as_raw_Detail_SphericalWarper(&self) -> *const c_void
[src]
pub fn as_raw_mut_Detail_SphericalWarper(&mut self) -> *mut c_void
[src]
pub fn build_maps(
&mut self,
src_size: Size,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
xmap: &mut dyn ToOutputArray,
ymap: &mut dyn ToOutputArray
) -> Result<Rect>
[src]
&mut self,
src_size: Size,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
xmap: &mut dyn ToOutputArray,
ymap: &mut dyn ToOutputArray
) -> Result<Rect>
pub fn warp(
&mut self,
src: &dyn ToInputArray,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
interp_mode: i32,
border_mode: i32,
dst: &mut dyn ToOutputArray
) -> Result<Point>
[src]
&mut self,
src: &dyn ToInputArray,
k: &dyn ToInputArray,
r: &dyn ToInputArray,
interp_mode: i32,
border_mode: i32,
dst: &mut dyn ToOutputArray
) -> Result<Point>
impl Drop for Detail_SphericalWarper
[src]
impl Send for Detail_SphericalWarper
[src]
Auto Trait Implementations
impl RefUnwindSafe for Detail_SphericalWarper
[src]
impl !Sync for Detail_SphericalWarper
[src]
impl Unpin for Detail_SphericalWarper
[src]
impl UnwindSafe for Detail_SphericalWarper
[src]
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>,