[−][src]Struct opencv::sfm::SFMLibmvEuclideanReconstruction
SFMLibmvEuclideanReconstruction class provides an interface with the Libmv Structure From Motion pipeline.
Methods
impl SFMLibmvEuclideanReconstruction
[src]
pub fn as_raw_SFMLibmvEuclideanReconstruction(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
impl SFMLibmvEuclideanReconstruction
[src]
pub fn run(&mut self, points2d: &dyn ToInputArray) -> Result<()>
[src]
Calls the pipeline in order to perform Eclidean reconstruction.
Parameters
- points2d: Input vector of vectors of 2d points (the inner vector is per image).
Note:
- Tracks must be as precise as possible. It does not handle outliers and is very sensible to them.
pub fn run_1(
&mut self,
points2d: &dyn ToInputArray,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
points2d: &dyn ToInputArray,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
Calls the pipeline in order to perform Eclidean reconstruction.
Parameters
- points2d: Input vector of vectors of 2d points (the inner vector is per image).
- K: Input/Output camera matrix . Input parameters used as initial guess.
- Rs: Output vector of 3x3 rotations of the camera.
- Ts: Output vector of 3x1 translations of the camera.
- points3d: Output array with estimated 3d points.
Note:
- Tracks must be as precise as possible. It does not handle outliers and is very sensible to them.
pub fn run_2(&mut self, images: &VectorOfString) -> Result<()>
[src]
Calls the pipeline in order to perform Eclidean reconstruction.
Parameters
- images: a vector of string with the images paths.
Note:
- The images must be ordered as they were an image sequence. Additionally, each frame should be as close as posible to the previous and posterior.
- For now DAISY features are used in order to compute the 2d points tracks and it only works for 3-4 images.
pub fn run_3(
&mut self,
images: &VectorOfString,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
images: &VectorOfString,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
Calls the pipeline in order to perform Eclidean reconstruction.
Parameters
- images: a vector of string with the images paths.
- K: Input/Output camera matrix . Input parameters used as initial guess.
- Rs: Output vector of 3x3 rotations of the camera.
- Ts: Output vector of 3x1 translations of the camera.
- points3d: Output array with estimated 3d points.
Note:
- The images must be ordered as they were an image sequence. Additionally, each frame should be as close as posible to the previous and posterior.
- For now DAISY features are used in order to compute the 2d points tracks and it only works for 3-4 images.
pub fn get_error(&self) -> Result<f64>
[src]
Returns the computed reprojection error.
pub fn get_points(&mut self, points3d: &mut dyn ToOutputArray) -> Result<()>
[src]
pub fn get_intrinsics(&self) -> Result<Mat>
[src]
Returns the refined camera calibration matrix.
pub fn get_cameras(
&mut self,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray
) -> Result<()>
Returns the estimated camera extrinsic parameters.
Parameters
- Rs: Output vector of 3x3 rotations of the camera.
- Ts: Output vector of 3x1 translations of the camera.
pub fn set_reconstruction_options(
&mut self,
libmv_reconstruction_options: libmv_ReconstructionOptions
) -> Result<()>
[src]
&mut self,
libmv_reconstruction_options: libmv_ReconstructionOptions
) -> Result<()>
Setter method for reconstruction options.
Parameters
- libmv_reconstruction_options: struct with reconstruction options such as initial keyframes, automatic keyframe selection, parameters to refine and the verbosity level.
pub fn set_camera_intrinsic_options(
&mut self,
libmv_camera_intrinsics_options: libmv_CameraIntrinsicsOptions
) -> Result<()>
[src]
&mut self,
libmv_camera_intrinsics_options: libmv_CameraIntrinsicsOptions
) -> Result<()>
Setter method for camera intrinsic options.
Parameters
- libmv_camera_intrinsics_options: struct with camera intrinsic options such as camera model and the internal camera parameters.
pub fn create(
camera_instrinsic_options: libmv_CameraIntrinsicsOptions,
reconstruction_options: libmv_ReconstructionOptions
) -> Result<PtrOfSFMLibmvEuclideanReconstruction>
[src]
camera_instrinsic_options: libmv_CameraIntrinsicsOptions,
reconstruction_options: libmv_ReconstructionOptions
) -> Result<PtrOfSFMLibmvEuclideanReconstruction>
Creates an instance of the SFMLibmvEuclideanReconstruction class. Initializes Libmv.
C++ default parameters
- camera_instrinsic_options: libmv_CameraIntrinsicsOptions()
- reconstruction_options: libmv_ReconstructionOptions()
Trait Implementations
impl BaseSFM for SFMLibmvEuclideanReconstruction
[src]
fn as_raw_BaseSFM(&self) -> *mut c_void
[src]
fn run(&mut self, points2d: &dyn ToInputArray) -> Result<()>
[src]
fn run_1(
&mut self,
points2d: &dyn ToInputArray,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
points2d: &dyn ToInputArray,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
fn run_2(&mut self, images: &VectorOfString) -> Result<()>
[src]
fn run_3(
&mut self,
images: &VectorOfString,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
images: &VectorOfString,
k: &mut dyn ToInputOutputArray,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray,
points3d: &mut dyn ToOutputArray
) -> Result<()>
fn get_error(&self) -> Result<f64>
[src]
fn get_points(&mut self, points3d: &mut dyn ToOutputArray) -> Result<()>
[src]
fn get_intrinsics(&self) -> Result<Mat>
[src]
fn get_cameras(
&mut self,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
rs: &mut dyn ToOutputArray,
ts: &mut dyn ToOutputArray
) -> Result<()>
fn set_reconstruction_options(
&mut self,
libmv_reconstruction_options: libmv_ReconstructionOptions
) -> Result<()>
[src]
&mut self,
libmv_reconstruction_options: libmv_ReconstructionOptions
) -> Result<()>
fn set_camera_intrinsic_options(
&mut self,
libmv_camera_intrinsics_options: libmv_CameraIntrinsicsOptions
) -> Result<()>
[src]
&mut self,
libmv_camera_intrinsics_options: libmv_CameraIntrinsicsOptions
) -> Result<()>
impl Drop for SFMLibmvEuclideanReconstruction
[src]
impl Send for SFMLibmvEuclideanReconstruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for SFMLibmvEuclideanReconstruction
impl !Sync for SFMLibmvEuclideanReconstruction
impl Unpin for SFMLibmvEuclideanReconstruction
impl UnwindSafe for SFMLibmvEuclideanReconstruction
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,