pub trait SFMLibmvEuclideanReconstructionTrait: BaseSFMTrait + SFMLibmvEuclideanReconstructionTraitConst {
// Required method
fn as_raw_mut_SFMLibmvEuclideanReconstruction(&mut self) -> *mut c_void;
// Provided methods
fn run(&mut self, points2d: &impl ToInputArray) -> Result<()> { ... }
fn run_1(
&mut self,
points2d: &impl ToInputArray,
k: &mut impl ToInputOutputArray,
rs: &mut impl ToOutputArray,
ts: &mut impl ToOutputArray,
points3d: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn run_2(&mut self, images: &Vector<String>) -> Result<()> { ... }
fn run_3(
&mut self,
images: &Vector<String>,
k: &mut impl ToInputOutputArray,
rs: &mut impl ToOutputArray,
ts: &mut impl ToOutputArray,
points3d: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn get_points(&mut self, points3d: &mut impl ToOutputArray) -> Result<()> { ... }
fn get_cameras(
&mut self,
rs: &mut impl ToOutputArray,
ts: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn set_reconstruction_options(
&mut self,
libmv_reconstruction_options: libmv_ReconstructionOptions,
) -> Result<()> { ... }
fn set_camera_intrinsic_options(
&mut self,
libmv_camera_intrinsics_options: libmv_CameraIntrinsicsOptions,
) -> Result<()> { ... }
}Expand description
Mutable methods for crate::sfm::SFMLibmvEuclideanReconstruction
Required Methods§
fn as_raw_mut_SFMLibmvEuclideanReconstruction(&mut self) -> *mut c_void
Provided Methods§
Sourcefn run(&mut self, points2d: &impl ToInputArray) -> Result<()>
fn run(&mut self, points2d: &impl ToInputArray) -> 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).
Note:
- Tracks must be as precise as possible. It does not handle outliers and is very sensible to them.
Sourcefn run_1(
&mut self,
points2d: &impl ToInputArray,
k: &mut impl ToInputOutputArray,
rs: &mut impl ToOutputArray,
ts: &mut impl ToOutputArray,
points3d: &mut impl ToOutputArray,
) -> Result<()>
fn run_1( &mut self, points2d: &impl ToInputArray, k: &mut impl ToInputOutputArray, rs: &mut impl ToOutputArray, ts: &mut impl ToOutputArray, points3d: &mut impl 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.
Sourcefn run_2(&mut self, images: &Vector<String>) -> Result<()>
fn run_2(&mut self, images: &Vector<String>) -> Result<()>
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.
Sourcefn run_3(
&mut self,
images: &Vector<String>,
k: &mut impl ToInputOutputArray,
rs: &mut impl ToOutputArray,
ts: &mut impl ToOutputArray,
points3d: &mut impl ToOutputArray,
) -> Result<()>
fn run_3( &mut self, images: &Vector<String>, k: &mut impl ToInputOutputArray, rs: &mut impl ToOutputArray, ts: &mut impl ToOutputArray, points3d: &mut impl 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.
Sourcefn get_points(&mut self, points3d: &mut impl ToOutputArray) -> Result<()>
fn get_points(&mut self, points3d: &mut impl ToOutputArray) -> Result<()>
Sourcefn get_cameras(
&mut self,
rs: &mut impl ToOutputArray,
ts: &mut impl ToOutputArray,
) -> Result<()>
fn get_cameras( &mut self, rs: &mut impl ToOutputArray, ts: &mut impl 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.
Sourcefn set_reconstruction_options(
&mut self,
libmv_reconstruction_options: libmv_ReconstructionOptions,
) -> Result<()>
fn set_reconstruction_options( &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.
Sourcefn set_camera_intrinsic_options(
&mut self,
libmv_camera_intrinsics_options: libmv_CameraIntrinsicsOptions,
) -> Result<()>
fn set_camera_intrinsic_options( &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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.