pub enum PupilGrid {
WavefrontMap(usize),
Interferogram(usize),
Linear {
n: usize,
rim: Rim,
},
Cells(usize),
Sheared {
n: usize,
q: [[f64; 2]; 2],
},
Gauss {
rings: usize,
arms: Option<usize>,
},
}Expand description
瞳の格子の種類(正規化瞳の座標)
Variants§
WavefrontMap(usize)
OpticStudio の Wavefront Map・Zernike の格子 p_i = (i − n/2)/(n/2 − 1)(n は 4 以上の偶数、Rim::Closed)
Interferogram(usize)
OpticStudio の Interferogram の格子 p_i = (i − n/2 + 1)/(n/2 − 1)(n は 4 以上の偶数、Rim::Closed)。
Wavefront Map の格子とは 1 点ずれる(OpticStudio 2026 R1 で確認)
Linear
−1〜1 を n − 1 等分した p_i = −1 + 2i/(n − 1)(n は 2 以上)
Cells(usize)
直径を n 区間に分けた区間の中心 c_i = −1 + h(i + 0.5)、h = 2/n(FFT PSF・Huygens PSF)。単位円にかかる区間だけを
使い、光線は区間の円内の部分の中心(近似)で追う。重みは区間の円内の面積の割合
([crate::psf::cell_frac]、8×8 の小区間で数える)
Sheared
PupilGrid::Cells の区間の中心 c を p = q c で写した格子(像面の上の FFT PSF で、J に非対角の項があるとき。
[crate::psf::image_shear])。重みは写した区間の円内の面積の割合
Gauss
瞳のガウス求積: r² に Gauss-Legendre(rings)× 等間隔の角度(arms、None で 4 rings + 2)。重みの和は 1
Implementations§
Trait Implementations§
impl Copy for PupilGrid
impl StructuralPartialEq for PupilGrid
Auto Trait Implementations§
impl Freeze for PupilGrid
impl RefUnwindSafe for PupilGrid
impl Send for PupilGrid
impl Sync for PupilGrid
impl Unpin for PupilGrid
impl UnsafeUnpin for PupilGrid
impl UnwindSafe for PupilGrid
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
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