[−][src]Struct cam_geom::PerspectiveParams
Parameters defining a pinhole perspective camera model.
These will be used to make the 3x4 intrinsic parameter matrix
[[fx, skew, cx, 0],
[ 0, fy, cy, 0],
[ 0, 0, 1, 0]]
These parameters describe the intrinsic parameters, the transformation from
camera coordinates to pixel coordinates, for a perspective camera model. For
a full transformation from world coordinates to pixel coordinates, use a
Camera
, which can be constructed with these intinsic
parameters and extrinsic parameters.
Read more about the pinhole perspective projection.
Can be converted into
IntrinsicParametersPerspective
via the .into()
method like so:
use cam_geom::*; let params = PerspectiveParams { fx: 100.0, fy: 100.0, skew: 0.0, cx: 640.0, cy: 480.0, }; let intrinsics: IntrinsicParametersPerspective<_> = params.into();
Fields
fx: R
Horizontal focal length.
fy: R
Vertical focal length.
skew: R
Skew between horizontal and vertical axes.
cx: R
Horizontal component of the principal point.
cy: R
Vertical component of the principal point.
Trait Implementations
impl<R: Clone + RealField> Clone for PerspectiveParams<R>
[src]
fn clone(&self) -> PerspectiveParams<R>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Debug + RealField> Debug for PerspectiveParams<R>
[src]
impl<'de, R: RealField> Deserialize<'de> for PerspectiveParams<R> where
R: Deserialize<'de>,
[src]
R: Deserialize<'de>,
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: PartialEq + RealField> PartialEq<PerspectiveParams<R>> for PerspectiveParams<R>
[src]
fn eq(&self, other: &PerspectiveParams<R>) -> bool
[src]
fn ne(&self, other: &PerspectiveParams<R>) -> bool
[src]
impl<R: RealField> Serialize for PerspectiveParams<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 PerspectiveParams<R>
[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for PerspectiveParams<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for PerspectiveParams<R>
impl<R> Sync for PerspectiveParams<R>
impl<R> Unpin for PerspectiveParams<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for PerspectiveParams<R> where
R: UnwindSafe,
R: 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>,