Struct birli::CxxImageSet
source · #[repr(C)]pub struct CxxImageSet { /* private fields */ }
Expand description
CXX Wrapper for aoflagger::ImageSet
, a set of time-frequency ‘images’ which
together contain data for one correlated baseline.
Please see the aoflagger documentation for more details.
Implementations§
source§impl CxxImageSet
impl CxxImageSet
sourcepub fn Width(&self) -> usize
pub fn Width(&self) -> usize
Get the width (number of timesteps) of the CxxImageSet
source§impl CxxImageSet
impl CxxImageSet
sourcepub fn Height(&self) -> usize
pub fn Height(&self) -> usize
Get the height (number of coarse × fine frequency channels) of the CxxImageSet
source§impl CxxImageSet
impl CxxImageSet
sourcepub fn ImageCount(&self) -> usize
pub fn ImageCount(&self) -> usize
Get the count (number of polarizations × complex components) of the CxxImageSet
source§impl CxxImageSet
impl CxxImageSet
sourcepub fn HorizontalStride(&self) -> usize
pub fn HorizontalStride(&self) -> usize
Get the total number of floats in one row of the CxxImageSet
Row might have been padded to allow for SSE instructions and other optimizations. Therefore, one should add the horizontal stride to a data pointer to get the float in the next row (channel).
source§impl CxxImageSet
impl CxxImageSet
sourcepub fn ImageBuffer(&self, imgIndex: usize) -> &[f32]
pub fn ImageBuffer(&self, imgIndex: usize) -> &[f32]
(Immutably) access the raw float buffer at imgIndex
in the CxxImageSet
source§impl CxxImageSet
impl CxxImageSet
sourcepub fn ImageBufferMut(
self: Pin<&mut CxxImageSet>,
imgIndex: usize
) -> &mut [f32]
pub fn ImageBufferMut( self: Pin<&mut CxxImageSet>, imgIndex: usize ) -> &mut [f32]
(Mutably) access the raw float buffer at imgIndex
in the CxxImageSet
source§impl CxxImageSet
impl CxxImageSet
sourcepub unsafe fn ImageBufferMutUnsafe(&self, imgIndex: usize) -> &mut [f32]
pub unsafe fn ImageBufferMutUnsafe(&self, imgIndex: usize) -> &mut [f32]
(Mutably) access the raw float buffer at imgIndex
in the CxxImageSet
without pins
TODO: document safety