Skip to main content

Module plugins

Module plugins 

Source
Expand description

系を追跡する解析を、解析のプラグイン(lensbench_core::plugin)として登録する同梱の crate。

計算は core(crate::analysis・crate::psf)のまま、名前・設定・配列の約束で包む。 結果は core の関数を直接呼んだ値とビット一致する。どれも入力は field(数 1 つなら視野の番号(1 始まり)、 2 個なら正規化視野 (hx, hy))で、系は Context で受け取る。wave は波長の番号(1 始まり、省けば全波長の 重み付き。wavefront・zernike は省けば主波長)。

名前設定出力
spotwave・rings(6)x・y・weight・wave・centroid・chief・rms_centroid・rms_chief・geo
wavefrontwave・n(64)・ref_primary(0)p・w((n, n)、外は NaN)・pv・rms
zernikewave・kind(standard)・terms(37)・n(64)・ref_primary(0)coef・pv・pv_centroid・rms_fit・max_fit・rms_chief・rms_centroid・variance・strehl
mtfwave・freqs(省けば遮断周波数の 0〜0.95 を 21 点)・n・method(auto・interp・direct・fft)freqs・tan・sag・cutoff
psfwave・pupil(自動)・image(128)・pixel・plane(image・chief)x・y・i((image, image))・center・pixel・peak・pupil・phase_step・enclosed
rmswave・rings(6)・reference(centroid・chief)spot・spot_x・spot_y・wfe・strehl
huygens_psfwave・pupil(自動)・image(128)・pixelpsf と同じ(x・y は像面の局所座標の中心からの差)
huygens_mtfwave・freqs(省けば mtf と同じ既定)・pupil(自動)・image(128)・pixelfreqs・tan・sag・cutoff
geo_mtfwave・freqs(省けば mtf と同じ既定)・n(128)・diff_limit(0)freqs・tan・sag・cutoff
popsurface(必須)・wave・dist か to・method(auto・fresnel・angular・direct)・rays(65)・n(256)・half・aperture(1)・out_n・out_half・out_center(2 個)出力の場 u(complex (ny, nx)、パイロットを除く)・dx・dy・center・pilot(ax・ay・curv)・power・peak・centroid・rms_width・distance・wavelength・index・kernel_step・fresnel_error、入力の場 input_u・input_dx・input_dy・input_center
interferogramwave・n(64)・beam1(1)・beam2(2、0 で参照球)・scale(1)・xtilt・ytilt(0)p・delta・intensity((n, n)、外は NaN)・pv・rms
ghostfirst(1)・last(省けば像面)組ごとの a・b・marginal_y・marginal_u・focus(無限遠は inf)・wfno・intensity(求まらなければ NaN)

interferogram(単色の干渉縞)の光束は系の多重構成の構成(System::config、構成が 1 つなら 1 だけ)。 pop は系の視野で入力の場を作り、ghost は視野を使わない(入力なし)。ghost の膜は Context の膜(なければ 系の膜ファイル)を使う。

Enums§

Analysis
同梱の解析の種類
Prepared
設定の決まった解析

Functions§

register
同梱の解析を reg に登録する