pub struct DistortionSpec {
pub wave: Option<usize>,
pub absolute: Option<bool>,
pub field: Option<FieldRef>,
pub reference: Option<FieldRef>,
pub peak: Option<bool>,
pub ftheta: Option<bool>,
pub coef: Option<String>,
pub abcd: Option<[f64; 4]>,
pub component: Option<String>,
pub target: Option<f64>,
}Expand description
distortion の項
Fields§
§wave: Option<usize>波長の番号。null・省略は主波長
absolute: Option<bool>true で実像高 − 予測の像高 [レンズ単位]、false・省略で予測の像高に対する %
field: Option<FieldRef>視野(省略は正規化視野 [0, 1])。peak では軸上からこの視野までの線の上の最大
reference: Option<FieldRef>基準の視野(省略は軸上で、予測は近軸主光線の倍率)。ほかの視野では、その視野の主光線の点と、そこでの像の点の 角の tan(物体高の視野では高さ)による微分から線形に予測する(OpticStudio の DISG)
peak: Option<bool>true で軸上から field までの絶対値の最大(OpticStudio の DIMX)
ftheta: Option<bool>true で校正した f-θ 歪曲: y の向きの視野で、主光線の高さに原点を通る y = cθ を当てたずれの絶対値の最大 (角度の視野だけ。OpticStudio の DISC)
coef: Option<String>a・b・c・d で、基準の視野でのグリッド歪曲の係数 J(∂(x, y)/∂t の [[a, b], [c, d]])を値にする(OpticStudio の ABCD)
abcd: Option<[f64; 4]>予測に使う [A, B, C, D](基準の視野での J の代わり。OpticStudio の DISA)
component: Option<String>歪曲の向き: radial(既定)・x・y(x・y は差の成分と、予測の変位の成分に対する %。OpticStudio の DISA の Data)
target: Option<f64>目標(target・min・max のどれかが要る)
Trait Implementations§
Source§impl Clone for DistortionSpec
impl Clone for DistortionSpec
Source§impl Debug for DistortionSpec
impl Debug for DistortionSpec
Source§impl<'de> Deserialize<'de> for DistortionSpec
impl<'de> Deserialize<'de> for DistortionSpec
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 DistortionSpec
impl JsonSchema for DistortionSpec
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 moreAuto Trait Implementations§
impl Freeze for DistortionSpec
impl RefUnwindSafe for DistortionSpec
impl Send for DistortionSpec
impl Sync for DistortionSpec
impl Unpin for DistortionSpec
impl UnsafeUnpin for DistortionSpec
impl UnwindSafe for DistortionSpec
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,
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