pub enum Apodization {
Uniform,
Gaussian(f64),
CosineCubed,
}Expand description
瞳のアポダイゼーション(系の設定。.zmx の系の行 GFAC 係数 種類、OpticStudio の System Explorer の Aperture の Apodization Type・Apodization Factor)。解析の瞳関数の振幅に常に入る(FFT PSF・Huygens PSF・回折 MTF)。
式は OpticStudio のヘルプ(System Explorer > Aperture)の定義に合わせる:
- Gaussian: 「瞳の上で振幅がガウス形に変わる。アポダイゼーション係数は振幅が瞳の半径の座標で減る速さ」。 振幅 A(ρ) = exp(−G ρ²)(ρ は正規化瞳の半径、G が係数。瞳の中心で 1)。G = 1 で縁の振幅が 1/e(強度 1/e²)、 強度が 1/e² になる半径は ρ₀ = 1/√G(ヘルプの例「係数 3 なら入射瞳の直径が 1/e² の幅の √3 倍」と同じ)。
- Cosine Cubed: 「点光源が平面を照らすときの強度の落ち方」。強度 I(θ) = cos³θ(θ は z 軸と、入射瞳と交わる 光線の角)を瞳の中心で 1 に正規化(I/I_中心)。振幅は √I。θ は物点から近軸の入射瞳の面の点 (ρ_x r, ρ_y r)(r は入射瞳の半径)への向きで求める。無限遠物体ではどの光線も同じ向きなので一様になる。
OpticStudio 26.1 と照合済み(Cooke 40 の Strehl が OS の FFT PSF 瞳 512 と 0.3% 以内。試験は解析的に確かめたもの)
Variants§
Uniform
一様(.zmx の GFAC _ 0)
Gaussian(f64)
ガウス A(ρ) = exp(−G ρ²)(GFAC G 1)
CosineCubed
cos³θ の強度(GFAC _ 2)
Implementations§
Source§impl Apodization
impl Apodization
Sourcepub fn from_zmx(kind: &str, g: f64) -> Result<Apodization>
pub fn from_zmx(kind: &str, g: f64) -> Result<Apodization>
.zmx の値から: kind は種類(0 一様・1 ガウス・2 Cosine Cubed。名前 UNIFORM・GAUSSIAN・COSINE も受ける)、g はガウスの 係数 G。OpticStudio の .zmx は系の行 GFAC 係数 種類
Sourcepub fn from_os_code(n: i64, g: f64) -> Apodization
pub fn from_os_code(n: i64, g: f64) -> Apodization
種類の番号 n(0〜2、それ以外は一様)と、ガウスの係数 g から
pub fn is_uniform(&self) -> bool
Trait Implementations§
Source§impl Clone for Apodization
impl Clone for Apodization
impl Copy for Apodization
Source§impl Debug for Apodization
impl Debug for Apodization
Source§impl Default for Apodization
impl Default for Apodization
Source§impl<'de> Deserialize<'de> for Apodization
impl<'de> Deserialize<'de> for Apodization
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Apodization
impl JsonSchema for Apodization
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Apodization
impl PartialEq for Apodization
Source§impl Serialize for Apodization
impl Serialize for Apodization
impl StructuralPartialEq for Apodization
Auto Trait Implementations§
impl Freeze for Apodization
impl RefUnwindSafe for Apodization
impl Send for Apodization
impl Sync for Apodization
impl Unpin for Apodization
impl UnsafeUnpin for Apodization
impl UnwindSafe for Apodization
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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