Struct NoiseModel

Source
pub(super) struct NoiseModel {
    combined_state: [NoiseModelState; 3],
    latest_state: [NoiseModelState; 3],
    n: usize,
    coords: Vec<[isize; 2]>,
}

Fields§

§combined_state: [NoiseModelState; 3]§latest_state: [NoiseModelState; 3]§n: usize§coords: Vec<[isize; 2]>

Implementations§

Source§

impl NoiseModel

Source

pub fn new() -> Self

Source

pub fn update( &mut self, source: &Frame<u8>, denoised: &Frame<u8>, flat_blocks: &[u8], ) -> NoiseStatus

Source

pub fn get_grain_parameters( &self, start_ts: u64, end_ts: u64, ) -> GrainTableSegment

Source

pub fn save_latest(&mut self)

Source

const fn num_coeffs() -> usize

Source

fn get_ar_coeffs_y( &self, n_coeff: usize, scale_ar_coeff: f64, ) -> ArrayVec<i8, NUM_Y_COEFFS>

Source

fn get_ar_coeffs_uv( &self, channel: usize, n_coeff: usize, scale_ar_coeff: f64, y_corr: [f64; 2], ) -> ArrayVec<i8, NUM_UV_COEFFS>

Source

fn is_different(&self) -> bool

Source

fn add_block_observations( &mut self, channel: usize, source: &Plane<u8>, denoised: &Plane<u8>, alt_source: Option<&Plane<u8>>, alt_denoised: Option<&Plane<u8>>, frame_dims: (usize, usize), flat_blocks: &[u8], num_blocks_w: usize, num_blocks_h: usize, )

Source

fn add_noise_std_observations( &mut self, channel: usize, source: &Plane<u8>, denoised: &Plane<u8>, alt_source: Option<&Plane<u8>>, frame_dims: (usize, usize), flat_blocks: &[u8], num_blocks_w: usize, num_blocks_h: usize, )

Trait Implementations§

Source§

impl Clone for NoiseModel

Source§

fn clone(&self) -> NoiseModel

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NoiseModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.