pub struct PointCloud<PointType> {
pub header: PclHeader,
pub points: Vec<PointType>,
pub size: u32,
pub width: u32,
pub height: u32,
pub is_dense: bool,
pub sensor_origin: Vector4<f32>,
pub sensor_orientation: Quaternion<f32>,
/* private fields */
}Fields§
§header: PclHeader§points: Vec<PointType>点数据
size: u32点云数量
width: u32点云宽度(如果以图像结构组织)
height: u32点云高度(如果以图像结构组织)
is_dense: bool是否所有点都是有效的(没有NaN或Inf值)
sensor_origin: Vector4<f32>传感器采集位置(原点/平移)
sensor_orientation: Quaternion<f32>传感器采集姿态(旋转)
Implementations§
Source§impl<PointType: Clone> PointCloud<PointType>
impl<PointType: Clone> PointCloud<PointType>
pub fn new() -> Self
Sourcepub fn from_points_vec(input_points_vec: Vec<PointType>) -> Self
pub fn from_points_vec(input_points_vec: Vec<PointType>) -> Self
从点云容器构造
Sourcepub fn from_subset(pc: &PointCloud<PointType>, indices: &[usize]) -> Self
pub fn from_subset(pc: &PointCloud<PointType>, indices: &[usize]) -> Self
从点云子集构造
Sourcepub fn is_organized(&self) -> bool
pub fn is_organized(&self) -> bool
判断点云是否是有组织的
Source§impl PointCloud<PointDEM>
impl PointCloud<PointDEM>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointNormal>
impl PointCloud<PointNormal>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointSurfel>
impl PointCloud<PointSurfel>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointUV>
impl PointCloud<PointUV>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointWithRange>
impl PointCloud<PointWithRange>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointWithScale>
impl PointCloud<PointWithScale>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointWithViewpoint>
impl PointCloud<PointWithViewpoint>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXY>
impl PointCloud<PointXY>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZ>
impl PointCloud<PointXYZ>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZHSV>
impl PointCloud<PointXYZHSV>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZI>
impl PointCloud<PointXYZI>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZINormal>
impl PointCloud<PointXYZINormal>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZL>
impl PointCloud<PointXYZL>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZLAB>
impl PointCloud<PointXYZLAB>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZLNormal>
impl PointCloud<PointXYZLNormal>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZRGB>
impl PointCloud<PointXYZRGB>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZRGBA>
impl PointCloud<PointXYZRGBA>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZRGBL>
impl PointCloud<PointXYZRGBL>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZRGBNormal>
impl PointCloud<PointXYZRGBNormal>
pub fn load_from_pcd(path: &str) -> Result<Self, Error>
Source§impl PointCloud<PointXYZRGB>
impl PointCloud<PointXYZRGB>
pub fn load_from_ply(path: &str) -> Result<Self, Error>
Trait Implementations§
Source§impl<PointType: Clone> Clone for PointCloud<PointType>
impl<PointType: Clone> Clone for PointCloud<PointType>
Source§fn clone(&self) -> PointCloud<PointType>
fn clone(&self) -> PointCloud<PointType>
Returns a copy 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<PointType: Debug> Debug for PointCloud<PointType>
impl<PointType: Debug> Debug for PointCloud<PointType>
Source§impl<PointType: Default> Default for PointCloud<PointType>
impl<PointType: Default> Default for PointCloud<PointType>
Source§fn default() -> PointCloud<PointType>
fn default() -> PointCloud<PointType>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<PointType> Freeze for PointCloud<PointType>
impl<PointType> RefUnwindSafe for PointCloud<PointType>where
PointType: RefUnwindSafe,
impl<PointType> Send for PointCloud<PointType>where
PointType: Send,
impl<PointType> Sync for PointCloud<PointType>where
PointType: Sync,
impl<PointType> Unpin for PointCloud<PointType>where
PointType: Unpin,
impl<PointType> UnwindSafe for PointCloud<PointType>where
PointType: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.