#[repr(i32)]pub enum ImagePaddingMode {
DNN_PMODE_NULL = 0,
DNN_PMODE_CROP_CENTER = 1,
DNN_PMODE_LETTERBOX = 2,
}
Expand description
Enum of image processing mode.
To facilitate the specialization pre-processing requirements of the dnn model.
For example, the letter box
often used in the Yolo series of models.
§See also
Image2BlobParams
Variants§
Trait Implementations§
Source§impl Clone for ImagePaddingMode
impl Clone for ImagePaddingMode
Source§fn clone(&self) -> ImagePaddingMode
fn clone(&self) -> ImagePaddingMode
Returns a duplicate 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 ImagePaddingMode
impl Debug for ImagePaddingMode
Source§impl From<ImagePaddingMode> for i32
impl From<ImagePaddingMode> for i32
Source§fn from(v: ImagePaddingMode) -> Self
fn from(v: ImagePaddingMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImagePaddingMode
impl PartialEq for ImagePaddingMode
Source§impl TryFrom<i32> for ImagePaddingMode
impl TryFrom<i32> for ImagePaddingMode
impl Copy for ImagePaddingMode
impl Eq for ImagePaddingMode
impl StructuralPartialEq for ImagePaddingMode
Auto Trait Implementations§
impl Freeze for ImagePaddingMode
impl RefUnwindSafe for ImagePaddingMode
impl Send for ImagePaddingMode
impl Sync for ImagePaddingMode
impl Unpin for ImagePaddingMode
impl UnwindSafe for ImagePaddingMode
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