[][src]Trait cam_geom::IntrinsicParameters

pub trait IntrinsicParameters<R>: Debug + Clone where
    R: RealField, 
{ type BundleType; fn pixel_to_camera<IN, NPTS>(
        &self,
        pixels: &Pixels<R, NPTS, IN>
    ) -> RayBundle<CameraFrame, Self::BundleType, R, NPTS, Owned<R, NPTS, U3>>
    where
        Self::BundleType: Bundle<R>,
        IN: Storage<R, NPTS, U2>,
        NPTS: Dim,
        DefaultAllocator: Allocator<R, U1, U2>,
        DefaultAllocator: Allocator<R, NPTS, U2>,
        DefaultAllocator: Allocator<R, NPTS, U3>
;
fn camera_to_pixel<IN, NPTS>(
        &self,
        camera: &Points<CameraFrame, R, NPTS, IN>
    ) -> Pixels<R, NPTS, Owned<R, NPTS, U2>>
    where
        IN: Storage<R, NPTS, U3>,
        NPTS: Dim,
        DefaultAllocator: Allocator<R, NPTS, U2>
; }

A geometric model of camera coordinates to pixels (and vice versa).

Associated Types

type BundleType

What type of ray bundle is returned when projecting pixels to rays.

Loading content...

Required methods

fn pixel_to_camera<IN, NPTS>(
    &self,
    pixels: &Pixels<R, NPTS, IN>
) -> RayBundle<CameraFrame, Self::BundleType, R, NPTS, Owned<R, NPTS, U3>> where
    Self::BundleType: Bundle<R>,
    IN: Storage<R, NPTS, U2>,
    NPTS: Dim,
    DefaultAllocator: Allocator<R, U1, U2>,
    DefaultAllocator: Allocator<R, NPTS, U2>,
    DefaultAllocator: Allocator<R, NPTS, U3>, 

project pixels to camera coords

fn camera_to_pixel<IN, NPTS>(
    &self,
    camera: &Points<CameraFrame, R, NPTS, IN>
) -> Pixels<R, NPTS, Owned<R, NPTS, U2>> where
    IN: Storage<R, NPTS, U3>,
    NPTS: Dim,
    DefaultAllocator: Allocator<R, NPTS, U2>, 

project camera coords to pixel coordinates

Loading content...

Implementors

impl<R> IntrinsicParameters<R> for IntrinsicParametersOrthographic<R> where
    R: RealField, 
[src]

type BundleType = SharedDirectionRayBundle<R>

impl<R> IntrinsicParameters<R> for IntrinsicParametersPerspective<R> where
    R: RealField, 
[src]

type BundleType = SharedOriginRayBundle<R>

Loading content...