[−][src]Enum opencv::imgcodecs::ImwriteFlags
Imwrite flags
Variants
For JPEG, it can be a quality from 0 to 100 (the higher is the better). Default value is 95.
Enable JPEG features, 0 or 1, default is False.
Enable JPEG features, 0 or 1, default is False.
JPEG restart interval, 0 - 65535, default is 0 - no restart.
Separate luma quality level, 0 - 100, default is 0 - don't use.
Separate chroma quality level, 0 - 100, default is 0 - don't use.
For PNG, it can be the compression level from 0 to 9. A higher value means a smaller size and longer compression time. If specified, strategy is changed to IMWRITE_PNG_STRATEGY_DEFAULT (Z_DEFAULT_STRATEGY). Default value is 1 (best speed setting).
One of cv::ImwritePNGFlags, default is IMWRITE_PNG_STRATEGY_RLE.
Binary level PNG, 0 or 1, default is 0.
For PPM, PGM, or PBM, it can be a binary format flag, 0 or 1. Default value is 1.
override EXR storage type (FLOAT (FP32) is default)
For WEBP, it can be a quality from 1 to 100 (the higher is the better). By default (without any parameter) and for quality above 100 the lossless compression is used.
For PAM, sets the TUPLETYPE field to the corresponding string value that is defined for the format
For TIFF, use to specify which DPI resolution unit to set; see libtiff documentation for valid values
For TIFF, use to specify the X direction DPI
For TIFF, use to specify the Y direction DPI
For TIFF, use to specify the image compression scheme. See libtiff for integer constants corresponding to compression formats. Note, for images whose depth is CV_32F, only libtiff's SGILOG compression scheme is used. For other supported depths, the compression scheme can be specified by this flag; LZW compression is the default.
For JPEG2000, use to specify the target compression rate (multiplied by 1000). The value can be from 0 to 1000. Default is 1000.
Trait Implementations
impl Clone for ImwriteFlags
[src]
pub fn clone(&self) -> ImwriteFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImwriteFlags
[src]
impl Debug for ImwriteFlags
[src]
impl PartialEq<ImwriteFlags> for ImwriteFlags
[src]
pub fn eq(&self, other: &ImwriteFlags) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for ImwriteFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImwriteFlags
[src]
impl Send for ImwriteFlags
[src]
impl Sync for ImwriteFlags
[src]
impl Unpin for ImwriteFlags
[src]
impl UnwindSafe for ImwriteFlags
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,