[−][src]Struct viewercloud::annotation::KittiAnnotation
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]
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
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]
pub fn default() -> KittiAnnotation
[src]
impl PartialEq<KittiAnnotation> for KittiAnnotation
[src]
pub fn eq(&self, other: &KittiAnnotation) -> bool
[src]
pub fn ne(&self, other: &KittiAnnotation) -> bool
[src]
impl StructuralPartialEq for KittiAnnotation
[src]
Auto Trait Implementations
impl RefUnwindSafe for KittiAnnotation
impl Send for KittiAnnotation
impl Sync for KittiAnnotation
impl Unpin for KittiAnnotation
impl UnwindSafe for KittiAnnotation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,