Skip to main content

Apodization

Enum Apodization 

Source
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

Source

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 係数 種類

Source

pub fn os_code(&self) -> i64

OpticStudio の種類の番号(0 一様・1 ガウス・2 Cosine Cubed)

Source

pub fn factor(&self) -> f64

ガウスの係数 G(ガウスでなければ 0)

Source

pub fn from_os_code(n: i64, g: f64) -> Apodization

種類の番号 n(0〜2、それ以外は一様)と、ガウスの係数 g から

Source

pub fn is_uniform(&self) -> bool

Trait Implementations§

Source§

impl Clone for Apodization

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 Copy for Apodization

Source§

impl Debug for Apodization

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Apodization

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Apodization

Source§

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

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

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

impl PartialEq for Apodization

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Apodization

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Apodization

Auto Trait Implementations§

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
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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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