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
sourceimpl CxxImageSet
impl CxxImageSet
sourcepub fn Width(&self) -> usize
pub fn Width(&self) -> usize
Get the width (number of timesteps) of the CxxImageSet
sourceimpl 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
sourceimpl CxxImageSet
impl CxxImageSet
sourcepub fn ImageCount(&self) -> usize
pub fn ImageCount(&self) -> usize
Get the count (number of polarizations × complex components) of the CxxImageSet
sourceimpl 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).
sourceimpl 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
sourceimpl 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
sourceimpl 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
Trait Implementations
sourceimpl ExternType for CxxImageSet
impl ExternType for CxxImageSet
type Kind = Opaque
type Kind = Opaque
Either cxx::kind::Opaque
or cxx::kind::Trivial
. Read more
impl Send for CxxImageSet
impl Sync for CxxImageSet
impl UniquePtrTarget for CxxImageSet
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more