[−][src]Trait pointcloud::LabelSet
A trait for a container that just holds labels. Meant to be used in conjunction with SimpleLabeledCloud
to be
and easy label or metadata object.
Associated Types
type Label: ?Sized
Underlying type.
type LabelSummary: Summary<Label = Self::Label>
Summary of a set of labels
Required methods
fn len(&self) -> usize
Number of elements in this label set
fn is_empty(&self) -> bool
If there are no elements left in this label set
fn label(&self, pn: PointIndex) -> PointCloudResult<Option<&Self::Label>>
Grabs a label reference. Supports errors (the label could be remote), and partially labeled datasets with the option.
fn label_summary(
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>
Grabs a label summary of a set of indexes.
Implementors
impl LabelSet for SmallIntLabels
[src]
type Label = u64
type LabelSummary = CategorySummary
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn label(&self, pn: PointIndex) -> PointCloudResult<Option<&u64>>
[src]
fn label_summary(
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>
[src]
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>
impl LabelSet for VecLabels
[src]
type Label = [f32]
type LabelSummary = VecSummary
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn label(&self, pn: PointIndex) -> PointCloudResult<Option<&Self::Label>>
[src]
fn label_summary(
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>
[src]
&self,
pns: &[PointIndex]
) -> PointCloudResult<Self::LabelSummary>