MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::RigidXfRansacParams Struct Reference
Inheritance diagram for meshlib::RigidXfRansacParams:

Public Member Functions

auto assign_from_another (_other:&meshlib::RigidXfRansacParams) -> &mut meshlib::RigidXfRansacParams
auto inlier_distance () const -> &f32
auto inlier_distance_mut () -> &mut f32
void set_inlier_distance (value:f32)
auto max_iterations () const -> &core::ffi::c_int
auto max_iterations_mut () -> &mut core::ffi::c_int
void set_max_iterations (value:core::ffi::c_int)
auto confidence () const -> &f32
auto confidence_mut () -> &mut f32
void set_confidence (value:f32)
auto edge_length_ratio () const -> &f32
auto edge_length_ratio_mut () -> &mut f32
void set_edge_length_ratio (value:f32)
auto seed () const -> &core::ffi::c_uint
auto seed_mut () -> &mut core::ffi::c_uint
void set_seed (value:core::ffi::c_uint)
auto overlap_src_points () const -> *const *const meshlib::ffi::MR_VertCoords
auto overlap_src_points_mut () -> *mut *const meshlib::ffi::MR_VertCoords
void set_overlap_src_points (value:Option<&meshlib::VertCoords >)
auto overlap_tgt_cloud () const -> *const *const meshlib::ffi::MR_PointCloud
auto overlap_tgt_cloud_mut () -> *mut *const meshlib::ffi::MR_PointCloud
void set_overlap_tgt_cloud (value:Option<&meshlib::PointCloud >)
auto overlap_tgt_points () const -> *const *const meshlib::ffi::MR_VertCoords
auto overlap_tgt_points_mut () -> *mut *const meshlib::ffi::MR_VertCoords
void set_overlap_tgt_points (value:Option<&meshlib::VertCoords >)
auto overlap_src_cloud () const -> *const *const meshlib::ffi::MR_PointCloud
auto overlap_src_cloud_mut () -> *mut *const meshlib::ffi::MR_PointCloud
void set_overlap_src_cloud (value:Option<&meshlib::PointCloud >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::RigidXfRansacParams >
static auto construct_from (inlierDistance:f32, maxIterations:core::ffi::c_int, confidence:f32, edgeLengthRatio:f32, seed:core::ffi::c_uint, overlapSrcPoints:Option<&meshlib::VertCoords >, overlapTgtCloud:Option<&meshlib::PointCloud >, overlapTgtPoints:Option<&meshlib::VertCoords >, overlapSrcCloud:Option<&meshlib::PointCloud >) -> meshlib::Owned< meshlib::RigidXfRansacParams >
static auto construct_from_another (_other:&meshlib::RigidXfRansacParams) -> meshlib::Owned< meshlib::RigidXfRansacParams >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Generated from class MR::RigidXfRansacParams.

Generated from class MR::RigidXfRansacParams. Heap-allocated instances are held in Owned<RigidXfRansacParams>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::RigidXfRansacParams::assign_from_another ( _other:&meshlib::RigidXfRansacParams ) -> &mut meshlib::RigidXfRansacParams

Generated from method MR::RigidXfRansacParams::operator=.

Calls MR_RigidXfRansacParams_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ confidence()

auto meshlib::RigidXfRansacParams::confidence ( ) const -> &f32

the search stops earlier when the probability to have tested at least one sample of three inliers reaches this value Returns a pointer to a member variable of class MR::RigidXfRansacParams named confidence.

Calls MR_RigidXfRansacParams_Get_confidence(). The reference to this object might be preserved as the return value.

◆ confidence_mut()

auto meshlib::RigidXfRansacParams::confidence_mut ( ) -> &mut f32

the search stops earlier when the probability to have tested at least one sample of three inliers reaches this value Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named confidence.

Calls MR_RigidXfRansacParams_GetMutable_confidence(). The reference to this object might be preserved as the return value.

◆ construct_from()

auto meshlib::RigidXfRansacParams::construct_from ( inlierDistance:f32 ,
maxIterations:core::ffi::c_int ,
confidence:f32 ,
edgeLengthRatio:f32 ,
seed:core::ffi::c_uint ,
overlapSrcPoints:Option<&meshlib::VertCoords > ,
overlapTgtCloud:Option<&meshlib::PointCloud > ,
overlapTgtPoints:Option<&meshlib::VertCoords > ,
overlapSrcCloud:Option<&meshlib::PointCloud >  ) -> meshlib::Owned< meshlib::RigidXfRansacParams >
static

Constructs MR::RigidXfRansacParams elementwise.

Calls MR_RigidXfRansacParams_ConstructFrom(). The reference to the parameter seed might be preserved in the constructed object. The reference to the parameter overlapSrcPoints might be preserved in the constructed object. The reference to the parameter overlapTgtCloud might be preserved in the constructed object. The reference to the parameter overlapTgtPoints might be preserved in the constructed object. The reference to the parameter overlapSrcCloud might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::RigidXfRansacParams::construct_from_another ( _other:&meshlib::RigidXfRansacParams ) -> meshlib::Owned< meshlib::RigidXfRansacParams >
static

Generated from constructor MR::RigidXfRansacParams::RigidXfRansacParams.

Calls MR_RigidXfRansacParams_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ edge_length_ratio()

auto meshlib::RigidXfRansacParams::edge_length_ratio ( ) const -> &f32

a sample is skipped without fitting if the distances between its source points and between its target points differ more than this ratio, since a rigid motion keeps distances Returns a pointer to a member variable of class MR::RigidXfRansacParams named edgeLengthRatio.

Calls MR_RigidXfRansacParams_Get_edgeLengthRatio(). The reference to this object might be preserved as the return value.

◆ edge_length_ratio_mut()

auto meshlib::RigidXfRansacParams::edge_length_ratio_mut ( ) -> &mut f32

a sample is skipped without fitting if the distances between its source points and between its target points differ more than this ratio, since a rigid motion keeps distances Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named edgeLengthRatio.

Calls MR_RigidXfRansacParams_GetMutable_edgeLengthRatio(). The reference to this object might be preserved as the return value.

◆ inlier_distance()

auto meshlib::RigidXfRansacParams::inlier_distance ( ) const -> &f32

a match is an inlier of a transformation if it maps the source point within this distance from the target point Returns a pointer to a member variable of class MR::RigidXfRansacParams named inlierDistance.

Calls MR_RigidXfRansacParams_Get_inlierDistance(). The reference to this object might be preserved as the return value.

◆ inlier_distance_mut()

auto meshlib::RigidXfRansacParams::inlier_distance_mut ( ) -> &mut f32

a match is an inlier of a transformation if it maps the source point within this distance from the target point Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named inlierDistance.

Calls MR_RigidXfRansacParams_GetMutable_inlierDistance(). The reference to this object might be preserved as the return value.

◆ max_iterations()

auto meshlib::RigidXfRansacParams::max_iterations ( ) const -> &core::ffi::c_int

the maximal number of random samples of three matches to test Returns a pointer to a member variable of class MR::RigidXfRansacParams named maxIterations.

Calls MR_RigidXfRansacParams_Get_maxIterations(). The reference to this object might be preserved as the return value.

◆ max_iterations_mut()

auto meshlib::RigidXfRansacParams::max_iterations_mut ( ) -> &mut core::ffi::c_int

the maximal number of random samples of three matches to test Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named maxIterations.

Calls MR_RigidXfRansacParams_GetMutable_maxIterations(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::RigidXfRansacParams::new ( ) -> meshlib::Owned< meshlib::RigidXfRansacParams >
static

Constructs an empty (default-constructed) instance.

Calls MR_RigidXfRansacParams_DefaultConstruct().

◆ overlap_src_cloud()

auto meshlib::RigidXfRansacParams::overlap_src_cloud ( ) const -> *const *const meshlib::ffi::MR_PointCloud

Returns a pointer to a member variable of class MR::RigidXfRansacParams named overlapSrcCloud.

Calls MR_RigidXfRansacParams_Get_overlapSrcCloud(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ overlap_src_cloud_mut()

auto meshlib::RigidXfRansacParams::overlap_src_cloud_mut ( ) -> *mut *const meshlib::ffi::MR_PointCloud

Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named overlapSrcCloud.

Calls MR_RigidXfRansacParams_GetMutable_overlapSrcCloud(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ overlap_src_points()

auto meshlib::RigidXfRansacParams::overlap_src_points ( ) const -> *const *const meshlib::ffi::MR_VertCoords

if both are set, a transformation is scored by how many of these source points it moves within inlierDistance of some point of the target cloud, instead of by the number of its inlier matches; this finds the transformation even when only a few matches are correct, at the cost of a closest point search per point Returns a pointer to a member variable of class MR::RigidXfRansacParams named overlapSrcPoints.

Calls MR_RigidXfRansacParams_Get_overlapSrcPoints(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ overlap_src_points_mut()

auto meshlib::RigidXfRansacParams::overlap_src_points_mut ( ) -> *mut *const meshlib::ffi::MR_VertCoords

if both are set, a transformation is scored by how many of these source points it moves within inlierDistance of some point of the target cloud, instead of by the number of its inlier matches; this finds the transformation even when only a few matches are correct, at the cost of a closest point search per point Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named overlapSrcPoints.

Calls MR_RigidXfRansacParams_GetMutable_overlapSrcPoints(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ overlap_tgt_cloud()

auto meshlib::RigidXfRansacParams::overlap_tgt_cloud ( ) const -> *const *const meshlib::ffi::MR_PointCloud

Returns a pointer to a member variable of class MR::RigidXfRansacParams named overlapTgtCloud.

Calls MR_RigidXfRansacParams_Get_overlapTgtCloud(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ overlap_tgt_cloud_mut()

auto meshlib::RigidXfRansacParams::overlap_tgt_cloud_mut ( ) -> *mut *const meshlib::ffi::MR_PointCloud

Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named overlapTgtCloud.

Calls MR_RigidXfRansacParams_GetMutable_overlapTgtCloud(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ overlap_tgt_points()

auto meshlib::RigidXfRansacParams::overlap_tgt_points ( ) const -> *const *const meshlib::ffi::MR_VertCoords

if both are set, the score also counts how many of these target points the inverse transformation moves within inlierDistance of some point of the source cloud; can be set alone or together with the pair above Returns a pointer to a member variable of class MR::RigidXfRansacParams named overlapTgtPoints.

Calls MR_RigidXfRansacParams_Get_overlapTgtPoints(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ overlap_tgt_points_mut()

auto meshlib::RigidXfRansacParams::overlap_tgt_points_mut ( ) -> *mut *const meshlib::ffi::MR_VertCoords

if both are set, the score also counts how many of these target points the inverse transformation moves within inlierDistance of some point of the source cloud; can be set alone or together with the pair above Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named overlapTgtPoints.

Calls MR_RigidXfRansacParams_GetMutable_overlapTgtPoints(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ seed()

auto meshlib::RigidXfRansacParams::seed ( ) const -> &core::ffi::c_uint

seed of pseudo-random sampling; the result depends on it but not on the number of threads Returns a pointer to a member variable of class MR::RigidXfRansacParams named seed.

Calls MR_RigidXfRansacParams_Get_seed(). The reference to this object might be preserved as the return value.

◆ seed_mut()

auto meshlib::RigidXfRansacParams::seed_mut ( ) -> &mut core::ffi::c_uint

seed of pseudo-random sampling; the result depends on it but not on the number of threads Returns a mutable pointer to a member variable of class MR::RigidXfRansacParams named seed.

Calls MR_RigidXfRansacParams_GetMutable_seed(). The reference to this object might be preserved as the return value.

◆ set_confidence()

void meshlib::RigidXfRansacParams::set_confidence ( value:f32 )

the search stops earlier when the probability to have tested at least one sample of three inliers reaches this value Modifies a member variable of class MR::RigidXfRansacParams named confidence.

Calls MR_RigidXfRansacParams_Set_confidence().

◆ set_edge_length_ratio()

void meshlib::RigidXfRansacParams::set_edge_length_ratio ( value:f32 )

a sample is skipped without fitting if the distances between its source points and between its target points differ more than this ratio, since a rigid motion keeps distances Modifies a member variable of class MR::RigidXfRansacParams named edgeLengthRatio.

Calls MR_RigidXfRansacParams_Set_edgeLengthRatio().

◆ set_inlier_distance()

void meshlib::RigidXfRansacParams::set_inlier_distance ( value:f32 )

a match is an inlier of a transformation if it maps the source point within this distance from the target point Modifies a member variable of class MR::RigidXfRansacParams named inlierDistance.

Calls MR_RigidXfRansacParams_Set_inlierDistance().

◆ set_max_iterations()

void meshlib::RigidXfRansacParams::set_max_iterations ( value:core::ffi::c_int )

the maximal number of random samples of three matches to test Modifies a member variable of class MR::RigidXfRansacParams named maxIterations.

Calls MR_RigidXfRansacParams_Set_maxIterations().

◆ set_overlap_src_cloud()

void meshlib::RigidXfRansacParams::set_overlap_src_cloud ( value:Option<&meshlib::PointCloud > )

Modifies a member variable of class MR::RigidXfRansacParams named overlapSrcCloud.

Calls MR_RigidXfRansacParams_Set_overlapSrcCloud(). The reference to the parameter value might be preserved in this object in element overlapSrcCloud.

◆ set_overlap_src_points()

void meshlib::RigidXfRansacParams::set_overlap_src_points ( value:Option<&meshlib::VertCoords > )

if both are set, a transformation is scored by how many of these source points it moves within inlierDistance of some point of the target cloud, instead of by the number of its inlier matches; this finds the transformation even when only a few matches are correct, at the cost of a closest point search per point Modifies a member variable of class MR::RigidXfRansacParams named overlapSrcPoints.

Calls MR_RigidXfRansacParams_Set_overlapSrcPoints(). The reference to the parameter value might be preserved in this object in element overlapSrcPoints.

◆ set_overlap_tgt_cloud()

void meshlib::RigidXfRansacParams::set_overlap_tgt_cloud ( value:Option<&meshlib::PointCloud > )

Modifies a member variable of class MR::RigidXfRansacParams named overlapTgtCloud.

Calls MR_RigidXfRansacParams_Set_overlapTgtCloud(). The reference to the parameter value might be preserved in this object in element overlapTgtCloud.

◆ set_overlap_tgt_points()

void meshlib::RigidXfRansacParams::set_overlap_tgt_points ( value:Option<&meshlib::VertCoords > )

if both are set, the score also counts how many of these target points the inverse transformation moves within inlierDistance of some point of the source cloud; can be set alone or together with the pair above Modifies a member variable of class MR::RigidXfRansacParams named overlapTgtPoints.

Calls MR_RigidXfRansacParams_Set_overlapTgtPoints(). The reference to the parameter value might be preserved in this object in element overlapTgtPoints.

◆ set_seed()

void meshlib::RigidXfRansacParams::set_seed ( value:core::ffi::c_uint )

seed of pseudo-random sampling; the result depends on it but not on the number of threads Modifies a member variable of class MR::RigidXfRansacParams named seed.

Calls MR_RigidXfRansacParams_Set_seed(). The reference to the parameter value might be preserved in this object in element seed.


The documentation for this struct was generated from the following file: