[−][src]Trait cv::Bearing
Describes the direction that the projection onto the camera's optical center
came from. It is implemented on projection items from different camera models.
It is also implemented for Unit<Vector3<f64>>
if you want to pre-compute the
normalized bearings for efficiency or to turn all camera models into a unified type.
Required methods
fn bearing_unnormalized(
&self
) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
&self
) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
Returns the unnormalized bearing which has direction point towards the direction that the signal entered the camera's center. The magnitude of this vector is unknown. Use this if you are sure that you do not need a normalized bearing. This may be faster.
fn from_bearing_vector(
bearing: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> Self
bearing: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> Self
Converts a bearing vector back into this bearing type.
This is useful if you would like to go backwards from reconstruction space to image space.
See CameraModel::uncalibrate
for how to then convert the camera bearing into image coordinates.
Provided methods
fn bearing(
&self
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
&self
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
Returns a unit vector of the direction that the projection created by the feature projects out of the optical center of the camera. This is defined as the the position delta of the feature from the optical center of the camera.
fn from_bearing_unit_vector(
bearing: Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
) -> Self
bearing: Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
) -> Self
Converts a bearing unit vector back into this bearing type.
This is useful if you would like to go backwards from reconstruction space to image space.
See CameraModel::uncalibrate
for how to then convert the camera bearing into image coordinates.
Implementations on Foreign Types
impl Bearing for NormalizedKeyPoint
[src]
fn bearing_unnormalized(
&self
) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
[src]
&self
) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
fn from_bearing_vector(
bearing: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> NormalizedKeyPoint
[src]
bearing: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> NormalizedKeyPoint
Implementors
impl Bearing for Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
[src]
fn bearing(
&self
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
[src]
&self
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
fn bearing_unnormalized(
&self
) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
[src]
&self
) -> Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
fn from_bearing_vector(
bearing: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
[src]
bearing: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
fn from_bearing_unit_vector(
bearing: Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
[src]
bearing: Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>
) -> Unit<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>