[][src]Struct viewercloud::annotation::KittiAnnotation

pub struct KittiAnnotation {
    pub category: String,
    pub truncation: f32,
    pub occlusion: i16,
    pub alpha: f32,
    pub xmin: f32,
    pub ymin: f32,
    pub xmax: f32,
    pub ymax: f32,
    pub h: f32,
    pub w: f32,
    pub l: f32,
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub ry: f32,
    pub score: f32,
}

Struct to reprensent every KITTI annotation.

Fields

category: String

Describes the type of object: 'Car', 'Van', 'Truck', 'Pedestrian', 'Person_sitting', 'Cyclist', 'Tram', 'Misc' or 'DontCare'.

truncation: f32

Float from 0 (non-truncated) to 1 (truncated), where truncated refers to the object leaving image boundaries

occlusion: i16

Integer (0,1,2,3) indicating occlusion state: 0 = fully visible, 1 = partly occluded, 2 = largely occluded, 3 = unknown

alpha: f32

Observation angle of object, ranging [-pi..pi]

xmin: f32

2D bounding box xmin of object in the image

ymin: f32

2D bounding box ymin of object in the image

xmax: f32

2D bounding box xmax of object in the image

ymax: f32

2D bounding box ymax of object in the image

h: f32

3D object dimensions height(in meters)

w: f32

3D object dimensions width (in meters)

l: f32

3D object dimensions length (in meters)

x: f32

3D object location x in camera coordinates (in meters)

y: f32

3D object location y in camera coordinates (in meters)

z: f32

3D object location z in camera coordinates (in meters)

ry: f32

Rotation ry around Y-axis in camera coordinates [-pi..pi]

score: f32

Score indicating confidence in detection [0..1] If coming from gound truth score is 1.0

Implementations

impl KittiAnnotation[src]

pub fn new(
    category: String,
    truncation: f32,
    occlusion: i16,
    alpha: f32,
    xmin: f32,
    ymin: f32,
    xmax: f32,
    ymax: f32,
    height: f32,
    width: f32,
    length: f32,
    xc: f32,
    yc: f32,
    zc: f32,
    ry: f32,
    score: f32
) -> Self
[src]

Create a KittiAnnotation

pub fn get_2d_bounding_box(self) -> [f32; 4][src]

Return the 2D BoundingBox in image coordinates system

pub fn get_3d_bounding_box(self) -> [f32; 7][src]

Return the 3D BoundingBox in the Lidar coordinates system

Trait Implementations

impl Debug for KittiAnnotation[src]

impl Default for KittiAnnotation[src]

impl PartialEq<KittiAnnotation> for KittiAnnotation[src]

impl StructuralPartialEq for KittiAnnotation[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,