pub struct ZoomParams {Show 15 fields
pub vars: Vec<VarSpec>,
pub efl: Option<Targets>,
pub pmag: Option<Targets>,
pub steps: usize,
pub merit: ImageMerit,
pub reference: Reference,
pub rings: usize,
pub iters: usize,
pub tol: f64,
pub configs: Vec<Value>,
pub method: ZoomMethod,
pub qr: bool,
pub gtol: f64,
pub active_set: bool,
pub stopped_as_vignetted: bool,
}Expand description
ズーム軌跡の設定。CLI の zoom・serve の zoom・Python の zoom
Fields§
§vars: Vec<VarSpec>状態ごとに解くパラメータ(“G2.shift”・“7.t”、範囲は “G2.shift=-5:20” か {“name”, “lo”, “hi”})
efl: Option<Targets>状態ごとの焦点距離の目標(状態の数だけ。null・“-” は目標なし)
pmag: Option<Targets>状態ごとの近軸倍率の目標(有限物体)
steps: usize隣り合う状態の間にとる点の数
merit: ImageMerit像の評価関数
reference: Reference基準
rings: usize瞳のガウス求積のリング数
iters: usize1 点の反復の上限
tol: f64目標との差の許し(目標に対する比)
configs: Vec<Value>状態(プロジェクトの状態の名前か .zmx の構成の番号)の並び。省けばすべて(serve)
method: ZoomMethod目標の満たし方
qr: bool一歩を正規方程式でなく QR で解く
gtol: f64残差と変数の列の余弦の最大がこれより小さければ止める(0 は判定しない)
active_set: bool境界: 範囲を出る変数を境界に止めて残りを解き直す(成分ごとに切らずに)
stopped_as_vignetted: bool止まった光線(全反射・面に届かない)をけられた光線と同じく除いて評価する(既定は評価できない誤り)
Implementations§
Trait Implementations§
Source§impl Clone for ZoomParams
impl Clone for ZoomParams
Source§impl Debug for ZoomParams
impl Debug for ZoomParams
Source§impl Default for ZoomParams
impl Default for ZoomParams
Source§impl<'de> Deserialize<'de> for ZoomParamswhere
ZoomParams: Default,
impl<'de> Deserialize<'de> for ZoomParamswhere
ZoomParams: Default,
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 ZoomParams
impl JsonSchema for ZoomParams
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 ZoomParams
impl PartialEq for ZoomParams
Source§impl Serialize for ZoomParams
impl Serialize for ZoomParams
impl StructuralPartialEq for ZoomParams
Auto Trait Implementations§
impl Freeze for ZoomParams
impl RefUnwindSafe for ZoomParams
impl Send for ZoomParams
impl Sync for ZoomParams
impl Unpin for ZoomParams
impl UnsafeUnpin for ZoomParams
impl UnwindSafe for ZoomParams
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