pub struct RangeImage {
pub width: usize,
pub height: usize,
pub data: Vec<f32>,
}Expand description
A dense range image in row-major order (row * width + col).
Fields§
§width: usizeImage width (columns).
height: usizeImage height (rows).
data: Vec<f32>Range per pixel in meters; 0.0 marks an empty pixel.
Implementations§
Source§impl RangeImage
impl RangeImage
Sourcepub fn filled_count(&self) -> usize
pub fn filled_count(&self) -> usize
Number of pixels that received a point.
Trait Implementations§
Source§impl Clone for RangeImage
impl Clone for RangeImage
Source§fn clone(&self) -> RangeImage
fn clone(&self) -> RangeImage
Returns a duplicate of the value. Read more
1.0.0 · 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 RangeImage
impl Debug for RangeImage
Source§impl PartialEq for RangeImage
impl PartialEq for RangeImage
impl StructuralPartialEq for RangeImage
Auto Trait Implementations§
impl Freeze for RangeImage
impl RefUnwindSafe for RangeImage
impl Send for RangeImage
impl Sync for RangeImage
impl Unpin for RangeImage
impl UnsafeUnpin for RangeImage
impl UnwindSafe for RangeImage
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