[][src]Struct pointcloud::labels::LabelScheme

pub struct LabelScheme { /* fields omitted */ }

The schema defined by a user to build a more complex metadata system from a CSV

Methods

impl LabelScheme[src]

pub fn new() -> LabelScheme[src]

Creates a new blank schema

pub fn add_name_column(&mut self, name: &str)[src]

Add a name column. This will be interpreted as a string, and will be the accessor for the points

pub fn add_string(&mut self, key: String)[src]

Add a string column, with a given string. If the CSV header has that string, it will load from that column

pub fn add_bool(&mut self, key: String)[src]

Add a bool column, with a given string. If the CSV header has that string, it will load from that column

pub fn add_f32(&mut self, key: String)[src]

Add a float column, with a given string. If the CSV header has that string, it will load from that column

pub fn add_u32(&mut self, key: String)[src]

Add a float column, with a given string. If the CSV header has that string, it will load from that column

pub fn add_i32(&mut self, key: String)[src]

Add a float column, with a given string. If the CSV header has that string, it will load from that column

pub fn add_vector(&mut self, name: String, dim: usize, dtype: &str)[src]

If there is a column with natural numbers intended to be used as a class label, it creates a accessor for that

pub fn open(&self, path: &PathBuf) -> Result<MetadataList, PointCloudError>[src]

Opens a file, and attemps to create an internal representation of the data with our type

Trait Implementations

impl Clone for LabelScheme[src]

impl Debug for LabelScheme[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.