Skip to main content

Psf

Struct Psf 

Source
#[non_exhaustive]
pub struct Psf { pub i: Grid2, pub plane: PsfPlane, pub center: (f64, f64), pub pixel: (f64, f64), pub axes: [[f64; 3]; 2], pub peak: f64, pub pupil: usize, pub phase_step: f64, pub enclosed: f64, pub warnings: Vec<String>, pub device: Option<String>, }
Expand description

回折 PSF

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.
§i: Grid2

強度(行優先、行 = y)。収差のない同じ瞳(けられ込み)の多色 PSF の中心の値を 1 とする(ピークはストレール比)。 格子の座標 [レンズ単位](中心 = 主波長の主光線の像点、Self::axes の向きに沿う)は i.x()[m] = (m − M/2)·pixel.0。 アフォーカル像空間では向きの角度 [System::afocal_unit](atan(l/n)・atan(m/n) の主光線との差、center・pixel も同じ)

§plane: PsfPlane

格子の面(像面の上か、主光線に垂直な面か)

§center: (f64, f64)

主波長の主光線の像点(像面の局所座標)

§pixel: (f64, f64)§axes: [[f64; 3]; 2]

格子の x・y の向き(像面の局所座標の単位ベクトル)。PsfPlane::Image なら像面の x̂・ŷ。 PsfPlane::ChiefPerp なら主波長の主光線に垂直な e1・e2 で、像面上の点は v = x e1 + y e2 を主光線の向き k = e1 × e2 に沿って像面へ移した v − k v_z / k_z(アフォーカル像空間では使わない)

§peak: f64

格子の最大値(ストレール比の目安)

§pupil: usize

使った瞳の格子の一辺(自動ならその値)

§phase_step: f64

瞳の隣り合う標本の位相差の最大 [rad](使う波長のうち最大)。π を超えると像が折り返して重なり、値は格子で 変わる(PHASE_STEP_WARN を超えたら warnings に入れる)

§enclosed: f64

像の格子に入った光量の割合(全光量に対する、重みつきの波長の平均)。小さければ格子が PSF を覆えていない

§warnings: Vec<String>

標本不足・格子の外の光量の注意(空なら問題なし)

§device: Option<String>

Huygens PSF の和を計算した装置(cpu か gpu: アダプタの名前)。FFT PSF は None

Trait Implementations§

Source§

impl Clone for Psf

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Psf

Source§

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

Formats the value using the given formatter. Read more

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> 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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.
§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,