[−][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
[src]
Underlying type.
type LabelSummary: Summary<Label = Self::Label>
[src]
Summary of a set of labels
Required methods
pub fn len(&self) -> usize
[src]
Number of elements in this label set
pub fn is_empty(&self) -> bool
[src]
If there are no elements left in this label set
pub fn label(&self, pn: usize) -> PointCloudResult<Option<&Self::Label>>
[src]
Grabs a label reference. Supports errors (the label could be remote), and partially labeled datasets with the option.
pub fn label_summary(
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
[src]
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
Grabs a label summary of a set of indexes.
Implementors
impl LabelSet for SmallIntLabels
[src]
type Label = i64
type LabelSummary = CategorySummary
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn label(&self, pn: usize) -> PointCloudResult<Option<&i64>>
[src]
pub fn label_summary(
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
[src]
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
impl LabelSet for VecLabels
[src]
type Label = [f32]
type LabelSummary = VecSummary
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn label(&self, pn: usize) -> PointCloudResult<Option<&Self::Label>>
[src]
pub fn label_summary(
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
[src]
&self,
pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>