pub struct SyntheticObject {
pub field: Array2<Complex64>,
pub label: Option<String>,
}Fields§
§field: Array2<Complex64>§label: Option<String>Implementations§
Source§impl SyntheticObject
impl SyntheticObject
pub fn new(field: Array2<Complex64>) -> Self
pub fn from_amplitude_phase( amplitude: &Array2<f64>, phase: &Array2<f64>, ) -> Result<Self>
pub fn amplitude_only(amplitude: Array2<f64>) -> Result<Self>
pub fn phase_only(phase: Array2<f64>) -> Result<Self>
pub fn from_amplitude_image(path: impl AsRef<Path>) -> Result<Self>
Sourcepub fn from_amplitude_phase_images(
amplitude_path: impl AsRef<Path>,
phase_path: impl AsRef<Path>,
phase_extent: f64,
) -> Result<Self>
pub fn from_amplitude_phase_images( amplitude_path: impl AsRef<Path>, phase_path: impl AsRef<Path>, phase_extent: f64, ) -> Result<Self>
Loads normalized grayscale amplitude and phase images. Phase values map
linearly from black/white to -phase_extent/+phase_extent radians.
pub fn constant( shape: (usize, usize), amplitude: f64, phase: f64, ) -> Result<Self>
pub fn phase_disk( shape: (usize, usize), radius_pixels: f64, phase_shift: f64, ) -> Result<Self>
pub fn siemens_star(shape: (usize, usize), spokes: usize) -> Result<Self>
pub fn resolution_target(shape: (usize, usize)) -> Result<Self>
pub fn random_phase( shape: (usize, usize), standard_deviation: f64, seed: u64, ) -> Result<Self>
pub fn particle_field( shape: (usize, usize), particles: usize, seed: u64, ) -> Result<Self>
Sourcepub fn mixed_test_pattern(shape: (usize, usize)) -> Result<Self>
pub fn mixed_test_pattern(shape: (usize, usize)) -> Result<Self>
A deterministic mixed amplitude/phase target useful for smoke tests.
Sourcepub fn biological_like(
shape: (usize, usize),
features: usize,
seed: u64,
) -> Result<Self>
pub fn biological_like( shape: (usize, usize), features: usize, seed: u64, ) -> Result<Self>
Smooth random phase and absorption blobs approximating a weak biological specimen. This is a test object, not a tissue-specific physical model.
pub fn shape(&self) -> (usize, usize)
Trait Implementations§
Source§impl Clone for SyntheticObject
impl Clone for SyntheticObject
Source§fn clone(&self) -> SyntheticObject
fn clone(&self) -> SyntheticObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyntheticObject
impl Debug for SyntheticObject
Auto Trait Implementations§
impl Freeze for SyntheticObject
impl RefUnwindSafe for SyntheticObject
impl Send for SyntheticObject
impl Sync for SyntheticObject
impl Unpin for SyntheticObject
impl UnsafeUnpin for SyntheticObject
impl UnwindSafe for SyntheticObject
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