[][src]Trait pointcloud::LabeledCloud

pub trait LabeledCloud {
    type Label: ?Sized;
    type LabelSummary: Summary<Label = Self::Label>;
    pub fn label(&self, pn: usize) -> PointCloudResult<Option<&Self::Label>>;
pub fn label_summary(
        &self,
        pns: &[usize]
    ) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>; }

A point cloud that is labeled

Associated Types

type Label: ?Sized[src]

Underlying type.

type LabelSummary: Summary<Label = Self::Label>[src]

Summary of a set of labels

Loading content...

Required methods

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]

Grabs a label summary of a set of indexes.

Loading content...

Implementors

impl<D, L: LabelSet> LabeledCloud for SimpleLabeledCloud<D, L>[src]

type Label = L::Label

type LabelSummary = L::LabelSummary

impl<D: LabeledCloud> LabeledCloud for HashGluedCloud<D>[src]

type Label = D::Label

type LabelSummary = D::LabelSummary

Loading content...