Skip to main content

imaging

Struct imaging 

Source
#[repr(C)]
pub struct imaging {
Show 27 fields pub N_PX_PUPIL: c_int, pub N_DFT: c_int, pub N_SIDE_LENSLET: c_int, pub N_LENSLET: c_int, pub N_SOURCE: c_int, pub N_PX_IMAGE: c_int, pub N_PX_CAMERA: c_int, pub N_FRAME: c_int, pub BIN_IMAGE: c_int, pub LOCAL_RAND_SEED: c_int, pub plan: cufftHandle, pub N_PHOTON_PER_SECOND_PER_FRAME: f32, pub N_PHOTON_PER_FRAME: f32, pub d__wave_PUPIL: *mut float2, pub d__frame: *mut f32, pub zenith: f32, pub azimuth: f32, pub theta_x: f32, pub theta_y: f32, pub d__zenith: *mut f32, pub d__azimuth: *mut f32, pub d__theta_x: *mut f32, pub d__theta_y: *mut f32, pub pixel_scale: f32, pub photoelectron_gain: f32, pub absolute_pointing: c_char, pub devStates: *mut curandState,
}

Fields§

§N_PX_PUPIL: c_int§N_DFT: c_int§N_SIDE_LENSLET: c_int§N_LENSLET: c_int§N_SOURCE: c_int§N_PX_IMAGE: c_int§N_PX_CAMERA: c_int§N_FRAME: c_int§BIN_IMAGE: c_int§LOCAL_RAND_SEED: c_int§plan: cufftHandle§N_PHOTON_PER_SECOND_PER_FRAME: f32§N_PHOTON_PER_FRAME: f32§d__wave_PUPIL: *mut float2§d__frame: *mut f32§zenith: f32§azimuth: f32§theta_x: f32§theta_y: f32§d__zenith: *mut f32§d__azimuth: *mut f32§d__theta_x: *mut f32§d__theta_y: *mut f32§pixel_scale: f32§photoelectron_gain: f32§absolute_pointing: c_char§devStates: *mut curandState

Implementations§

Source§

impl imaging

Source

pub unsafe fn setup( &mut self, __N_PX_PUPIL: c_int, __N_SIDE_LENSLET: c_int, DFT_osf: c_int, IMAGE_osf: f32, CAMERA_osf: f32, )

Source

pub unsafe fn setup1( &mut self, __N_PX_PUPIL: c_int, __N_SIDE_LENSLET: c_int, DFT_osf: c_int, IMAGE_osf: f32, CAMERA_osf: f32, __N_SOURCE: c_int, )

Source

pub unsafe fn setup2( &mut self, __N_PX_PUPIL: c_int, __N_SIDE_LENSLET: c_int, DFT_osf: c_int, N_PX_IMAGE_: c_int, CAMERA_osf: f32, __N_SOURCE: c_int, )

Source

pub unsafe fn setup3( &mut self, __N_PX_PUPIL: c_int, __N_SIDE_LENSLET: c_int, DFT_osf: c_int, N_PX_IMAGE_: c_int, BIN_IMAGE: c_int, __N_SOURCE: c_int, )

Source

pub unsafe fn setupSegmentPistonSensor( &mut self, __N_PX_PUPIL: c_int, __N_SIDE_LENSLET: c_int, _N_DFT_: c_int, N_PX_IMAGE_: c_int, _BIN_IMAGE_: c_int, __N_SOURCE: c_int, )

Source

pub unsafe fn cleanup(&mut self)

Source

pub unsafe fn cleanupSegmentPistonSensor(&mut self)

Source

pub unsafe fn set_pointing_direction(&mut self, zen: *mut f32, azim: *mut f32)

Source

pub unsafe fn reset(&mut self)

Source

pub unsafe fn reset_rng(&mut self, SEED: c_int)

Source

pub unsafe fn propagate(&mut self, src: *mut source)

Source

pub unsafe fn propagate_cpx(&mut self, src: *mut source)

Source

pub unsafe fn propagateNoOverlap(&mut self, src: *mut source)

Source

pub unsafe fn propagateNoOverlapBare(&mut self, src: *mut source)

Source

pub unsafe fn propagateNoOverlapSPS( &mut self, src: *mut source, d: f32, wavenumber: f32, )

Source

pub unsafe fn propagateTT7(&mut self, src: *mut source)

Source

pub unsafe fn propagateTT71( &mut self, src: *mut source, d__piston_mask: *mut c_int, )

Source

pub unsafe fn propagateThroughFieldStop( &mut self, src: *mut source, field_stop_diam: f32, )

Source

pub unsafe fn propagateThroughPyramid(&mut self, src: *mut source, alpha: f32)

Source

pub unsafe fn propagateThroughModulatedPyramid( &mut self, src: *mut source, modulation: f32, modulation_sampling: c_int, alpha: f32, )

Source

pub unsafe fn readout(&mut self, exposureTime: f32, readOutNoiseRms: f32)

Source

pub unsafe fn noiseless_readout(&mut self, exposureTime: f32)

Source

pub unsafe fn readout1( &mut self, exposureTime: f32, readOutNoiseRms: f32, nBackgroundPhoton: f32, noiseFactor: f32, )

Source

pub unsafe fn strehl_ratio(&mut self, ref_: *mut imaging) -> f32

Source

pub unsafe fn info(&mut self)

Source

pub unsafe fn frame2file(&mut self, filename: *const c_char)

Source

pub unsafe fn show_frame(&mut self, filename: *mut c_char)

Source

pub unsafe fn show_frame1(&mut self, filename: *mut c_char, ref_: *mut imaging)

Trait Implementations§

Source§

impl Clone for imaging

Source§

fn clone(&self) -> imaging

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for imaging

Source§

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

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

impl Default for imaging

Source§

fn default() -> Self

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

impl Copy for imaging

Source§

impl Send for imaging

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> 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> 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 = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.