pub struct ImageSimOpts {Show 15 fields
pub field_height: f64,
pub psf_grid: (usize, usize),
pub map_grid: usize,
pub pupil: Option<usize>,
pub psf_points: usize,
pub pixel: Option<f64>,
pub size: Option<(usize, usize)>,
pub aberrations: Aberrations,
pub relative_illumination: bool,
pub channel_waves: Option<[usize; 3]>,
pub wave: Option<usize>,
pub center_field: (f64, f64),
pub flip_source: Flip,
pub rotate: Rotate,
pub flip_image: Flip,
}Expand description
像の模擬の設定
Fields§
§field_height: f64元の画像の高さ(全体)[視野の単位]
psf_grid: (usize, usize)PSF の格子の点の数 (x, y)(元の画像の範囲に等間隔、端を含む)
map_grid: usize歪曲・相対照度の格子の一辺(元の画像の範囲に等間隔、端を含む)
pupil: Option<usize>PSF の瞳の格子(None で自動。幾何 PSF は GEO_PUPIL)
psf_points: usizePSF の格子の一辺(FFT PSF の像の格子。検出器の画素に積分する前)
pixel: Option<f64>検出器の画素の大きさ [レンズ単位](None で元の 1 画素の軸上の像の大きさ)
size: Option<(usize, usize)>検出器の画素の数 (x, y)(None で元の画像と同じ)
aberrations: Aberrations§relative_illumination: bool相対照度をかける
channel_waves: Option<[usize; 3]>RGB のチャンネルの波長の番号(0 から、R・G・B の順)。None なら系の波長 1〜3 を短い方から B・G・R に
wave: Option<usize>グレーの画像の波長の番号(0 から)。None ならウェイトのある全波長
center_field: (f64, f64)元の画像の中心の視野 (x, y) [視野の単位](OpticStudio の Field。検出器の中心はその主波長の主光線の像点)
flip_source: Flip元の画像の反転(回転の前)
rotate: Rotate元の画像の回転(反転の後)
flip_image: Flip検出器の像の反転
Trait Implementations§
Source§impl Clone for ImageSimOpts
impl Clone for ImageSimOpts
Source§impl Debug for ImageSimOpts
impl Debug for ImageSimOpts
Auto Trait Implementations§
impl Freeze for ImageSimOpts
impl RefUnwindSafe for ImageSimOpts
impl Send for ImageSimOpts
impl Sync for ImageSimOpts
impl Unpin for ImageSimOpts
impl UnsafeUnpin for ImageSimOpts
impl UnwindSafe for ImageSimOpts
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,
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