ConstraintMatchingOptions¶
giant.relative_opnav.estimators.constraint_matching
:
This dataclass serves as one way to control the settings for the
ConstraintMatching
class.You can set any of the options on an instance of this dataclass and pass it to the
ConstraintMatching
class at initialization (or through the methodConstraintMatching.apply_options()
) to set the settings on the class. This class is the preferred way of setting options on the class due to ease of use in IDEs.- Parameters:
match_against_template (bool)
match_across_images (bool)
min_constraints (int)
compute_constraint_positions (bool)
brdf (IlluminationModel)
grid_size (int)
template_overflow_bounds (int)
max_time_difference (timedelta | None)
feature_matcher (FeatureMatcher)
A flag to match keypoints between the image and a rendered template.
A flag to match keypoints across multiple images.
Minimum number of matched constraints in order for the constraint matching to be considered successful.
A flag to compute the constraint target-fixed positions.
The illumination model that transforms the geometric ray tracing results (see
ILLUM_DTYPE
) into an intensity values. Typically this is one of the options from theillumination
module).
The rays to use when rendering the template. If
None
then the rays required to render the template will be automatically computed. Optionally, a list ofRays
objects where each element corresponds to the rays to use for the corresponding template in theScene.target_objs
list. Typically this should be left asNone
.
The subsampling to use per pixel when rendering the template. This should be the number of sub-pixels per side of a pixel (that is if grid_size=3 then subsampling will be in an equally spaced 3x3 grid -> 9 sub-pixels per pixel). If
rays
is not None then this is ignored
The number of pixels to render in the template that overflow outside of the camera field of view. Set to a number less than 0 to accept all overflow pixels in the template. Set to a number greater than or equal to 0 to limit the number of overflow pixels.
Maximum time difference between image observation dates for keypoints to be matched between images. Set to a datetime.timedelta type. If None, then a maximum time difference will not be applied.
The feature matcher instance to use