[][src]Trait pointcloud::LabeledCloud

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

A point cloud that is labeled

Associated Types

type Label: ?Sized

Underlying type.

type LabelSummary: Summary<Label = Self::Label>

Summary of a set of labels

Loading content...

Required methods

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>

Grabs a label summary of a set of indexes.

Loading content...

Implementors

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

type Label = D::Label

type LabelSummary = D::LabelSummary

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

type Label = L::Label

type LabelSummary = L::LabelSummary

Loading content...