[−][src]Struct cam_geom::IntrinsicParametersPerspective
A pinhole perspective camera model. Implements IntrinsicParameters
.
Create an IntrinsicParametersPerspective
as described for
PerspectiveParams
by using .into()
.
Methods
impl<R: RealField> IntrinsicParametersPerspective<R>
[src]
pub fn from_normalized_3x4_matrix(p: MatrixMN<R, U3, U4>) -> Result<Self, Error>
[src]
Create a new instance given an intrinsic parameter matrix.
Returns an error if the intrinsic parameter matrix is not normalized or otherwise does not represent a perspective camera model.
pub fn fx(&self) -> R
[src]
Get X focal length
pub fn fy(&self) -> R
[src]
Get Y focal length
pub fn skew(&self) -> R
[src]
Get skew
pub fn cx(&self) -> R
[src]
Get X center
pub fn cy(&self) -> R
[src]
Get Y center
Trait Implementations
impl<R: Clone + RealField> Clone for IntrinsicParametersPerspective<R>
[src]
fn clone(&self) -> IntrinsicParametersPerspective<R>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: RealField> Debug for IntrinsicParametersPerspective<R>
[src]
impl<'de, R: RealField + Deserialize<'de>> Deserialize<'de> for IntrinsicParametersPerspective<R>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<R: RealField> From<PerspectiveParams<R>> for IntrinsicParametersPerspective<R>
[src]
fn from(params: PerspectiveParams<R>) -> Self
[src]
impl<R> IntrinsicParameters<R> for IntrinsicParametersPerspective<R> where
R: RealField,
[src]
R: RealField,
type BundleType = SharedOriginRayBundle<R>
What type of ray bundle is returned when projecting pixels to rays.
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, NPTS, U3>,
[src]
&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, 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>,
[src]
&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>,
impl<R: PartialEq + RealField> PartialEq<IntrinsicParametersPerspective<R>> for IntrinsicParametersPerspective<R>
[src]
fn eq(&self, other: &IntrinsicParametersPerspective<R>) -> bool
[src]
fn ne(&self, other: &IntrinsicParametersPerspective<R>) -> bool
[src]
impl<R: RealField> Serialize for IntrinsicParametersPerspective<R> where
R: Serialize,
[src]
R: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<R: RealField> StructuralPartialEq for IntrinsicParametersPerspective<R>
[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for IntrinsicParametersPerspective<R> where
R: RefUnwindSafe + Scalar,
R: RefUnwindSafe + Scalar,
impl<R> Send for IntrinsicParametersPerspective<R> where
R: Scalar,
R: Scalar,
impl<R> Sync for IntrinsicParametersPerspective<R> where
R: Scalar,
R: Scalar,
impl<R> Unpin for IntrinsicParametersPerspective<R> where
R: Scalar + Unpin,
R: Scalar + Unpin,
impl<R> UnwindSafe for IntrinsicParametersPerspective<R> where
R: Scalar + UnwindSafe,
R: Scalar + UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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.
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>,