Skip to main content

Geometric

Type Alias Geometric 

Source
pub type Geometric = geometricShackHartmann;

Aliased Type§

#[repr(C)]
pub struct Geometric {
Show 22 fields pub N_WFS: i32, pub N_SIDE_LENSLET: i32, pub N_LENSLET: i32, pub N_ACTUATOR: i32, pub N_SLOPE: i32, pub d__c0: *mut f32, pub d__cx0: *mut f32, pub d__cy0: *mut f32, pub valid_lenslet: mask, pub valid_actuator: mask, pub camera: imaging, pub data_proc: centroiding, pub DFT_osf: i32, pub lenslet_pitch: f32, pub pixel_scale: f32, pub intensity_threshold: f32, pub slopes_gain: f32, pub _d__c_: *mut f32, pub _d__cx_: *mut f32, pub _d__cy_: *mut f32, pub N_FRAME: i32, pub handle: *mut cublasContext,
}

Fields§

§N_WFS: i32§N_SIDE_LENSLET: i32§N_LENSLET: i32§N_ACTUATOR: i32§N_SLOPE: i32§d__c0: *mut f32§d__cx0: *mut f32§d__cy0: *mut f32§valid_lenslet: mask§valid_actuator: mask§camera: imaging§data_proc: centroiding§DFT_osf: i32§lenslet_pitch: f32§pixel_scale: f32§intensity_threshold: f32§slopes_gain: f32§_d__c_: *mut f32§_d__cx_: *mut f32§_d__cy_: *mut f32§N_FRAME: i32§handle: *mut cublasContext

Trait Implementations§

Source§

impl Model for Geometric

Source§

fn calibrate(&mut self, src: &mut Source, threshold: f64) -> &mut Self

Calibrates the ShackHartmann WFS reference slopes and valid lenslets

Source§

fn new() -> Self

Source§

fn build( &mut self, n_side_lenslet: i32, d: f32, n_sensor: i32, _n_px_lenslet: i32, _osf: i32, _n_px: i32, _b: i32, )

Source§

fn as_mut_ptr(&mut self) -> *mut f32

Source§

fn reset(&mut self) -> &mut Self

Source§

fn process(&mut self) -> &mut Self

Source§

fn data(&mut self) -> Cu<Single>

Returns the centroids corresponding to the valid lenslets Read more
Source§

fn n_valid_lenslet(&mut self) -> usize

Source§

fn drop(&mut self)

Source§

fn valid_lenslets(&mut self) -> Vec<f32>

Source§

fn lenslet_mask(&mut self) -> Cu<Single>

Source§

fn lenslet_flux(&mut self) -> Cu<Single>

Source§

fn valid_lenslet(&mut self) -> &mut mask

Source§

fn set_valid_lenslet(&mut self, lenslet_mask: &[i32])

Source§

fn set_reference_slopes(&mut self, src: &mut Source)

Source§

fn filter(&mut self, lenslet_mask: &mut Mask) -> Cu<Single>

Source§

fn propagate(&mut self, src: &mut Source) -> &mut Self

Source§

fn readout( &mut self, _exposure_time: f32, _rms_read_out_noise: f32, _n_background_photon: f32, _noise_factor: f32, ) -> &mut Self

Source§

fn frame(&self) -> Option<Vec<f32>>

Source§

fn n_frame(&self) -> usize

Source§

fn valid_lenslet_from(&mut self, wfs: &mut mask)