Enum opencv::core::BorderTypes
source · #[repr(C)]pub enum BorderTypes {
BORDER_CONSTANT = 0,
BORDER_REPLICATE = 1,
BORDER_REFLECT = 2,
BORDER_WRAP = 3,
BORDER_REFLECT_101 = 4,
BORDER_TRANSPARENT = 5,
BORDER_ISOLATED = 16,
}
Expand description
Various border types, image boundaries are denoted with |
§See also
borderInterpolate, copyMakeBorder
Variants§
BORDER_CONSTANT = 0
iiiiii|abcdefgh|iiiiiii
with some specified i
BORDER_REPLICATE = 1
aaaaaa|abcdefgh|hhhhhhh
BORDER_REFLECT = 2
fedcba|abcdefgh|hgfedcb
BORDER_WRAP = 3
cdefgh|abcdefgh|abcdefg
BORDER_REFLECT_101 = 4
gfedcb|abcdefgh|gfedcba
BORDER_TRANSPARENT = 5
uvwxyz|abcdefgh|ijklmno
- Treats outliers as transparent.
BORDER_ISOLATED = 16
Interpolation restricted within the ROI boundaries.
Trait Implementations§
source§impl Clone for BorderTypes
impl Clone for BorderTypes
source§fn clone(&self) -> BorderTypes
fn clone(&self) -> BorderTypes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BorderTypes
impl Debug for BorderTypes
source§impl From<BorderTypes> for i32
impl From<BorderTypes> for i32
source§fn from(v: BorderTypes) -> Self
fn from(v: BorderTypes) -> Self
Converts to this type from the input type.
source§impl PartialEq for BorderTypes
impl PartialEq for BorderTypes
source§fn eq(&self, other: &BorderTypes) -> bool
fn eq(&self, other: &BorderTypes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for BorderTypes
impl TryFrom<i32> for BorderTypes
impl Copy for BorderTypes
impl Eq for BorderTypes
impl StructuralPartialEq for BorderTypes
Auto Trait Implementations§
impl Freeze for BorderTypes
impl RefUnwindSafe for BorderTypes
impl Send for BorderTypes
impl Sync for BorderTypes
impl Unpin for BorderTypes
impl UnwindSafe for BorderTypes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)