#[non_exhaustive]pub struct BlurBaselineConfig {
pub max_blur_sigma: f32,
/* private fields */
}Available on crate features
dataset-service or deployment-resource-pool-service or endpoint-service or job-service or model-service or pipeline-service or prediction-service only.Expand description
Config for blur baseline.
When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_blur_sigma: f32The standard deviation of the blur kernel for the blurred baseline. The same blurring parameter is used for both the height and the width dimension. If not set, the method defaults to the zero (i.e. black for images) baseline.
Implementations§
Source§impl BlurBaselineConfig
impl BlurBaselineConfig
pub fn new() -> Self
Sourcepub fn set_max_blur_sigma<T: Into<f32>>(self, v: T) -> Self
pub fn set_max_blur_sigma<T: Into<f32>>(self, v: T) -> Self
Sets the value of max_blur_sigma.
§Example
ⓘ
let x = BlurBaselineConfig::new().set_max_blur_sigma(42.0);Trait Implementations§
Source§impl Clone for BlurBaselineConfig
impl Clone for BlurBaselineConfig
Source§fn clone(&self) -> BlurBaselineConfig
fn clone(&self) -> BlurBaselineConfig
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 BlurBaselineConfig
impl Debug for BlurBaselineConfig
Source§impl Default for BlurBaselineConfig
impl Default for BlurBaselineConfig
Source§fn default() -> BlurBaselineConfig
fn default() -> BlurBaselineConfig
Returns the “default value” for a type. Read more
Source§impl Message for BlurBaselineConfig
impl Message for BlurBaselineConfig
Source§impl PartialEq for BlurBaselineConfig
impl PartialEq for BlurBaselineConfig
impl StructuralPartialEq for BlurBaselineConfig
Auto Trait Implementations§
impl Freeze for BlurBaselineConfig
impl RefUnwindSafe for BlurBaselineConfig
impl Send for BlurBaselineConfig
impl Sync for BlurBaselineConfig
impl Unpin for BlurBaselineConfig
impl UnwindSafe for BlurBaselineConfig
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