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