pub struct PSF {
pub path: PathBuf,
pub data: Vec<Vec<f64>>,
pub x_pixels: usize,
pub y_pixels: usize,
pub center: Point,
pub size: (f64, f64),
}Fields§
§path: PathBuf§data: Vec<Vec<f64>>§x_pixels: usize§y_pixels: usize§center: Point§size: (f64, f64)Implementations§
Source§impl PSF
impl PSF
pub fn load_file( file: PathBuf, center: (Load, Load), size: (Load, Load), x_num: usize, y_num: usize, ) -> PSF
pub fn write_file(&self, path: &str, center_keys: (&str, &str))
pub fn snap_to_grid(&self, grid: &GRID2D) -> usize
pub fn repack_data(flat_data: Vec<f64>) -> Vec<Vec<f64>>
pub fn convolve(&self, kernel: &Vec<Vec<f64>>) -> Vec<f64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PSF
impl RefUnwindSafe for PSF
impl Send for PSF
impl Sync for PSF
impl Unpin for PSF
impl UnsafeUnpin for PSF
impl UnwindSafe for PSF
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more