#[non_exhaustive]pub struct SaddlePointConfig {
pub radius: i32,
pub det_margin: f32,
pub max_offset: f32,
pub min_abs_det: f32,
}Expand description
Configuration for the SaddlePointRefiner.
All thresholds below are advanced tuning knobs. The defaults are appropriate for most scenes; adjust only if you observe excessive rejection or acceptance of clearly-wrong refinements.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.radius: i32Half-size of the image patch used for the surface fit, in image
pixels (integer >= 1; the patch is (2·radius+1)²). Default 2
(5×5 patch).
Advanced tuning.
det_margin: f32Margin on the Hessian determinant of the fitted quadratic
(unitless, >= 0): a saddle is confirmed only when
det(H) < -det_margin. Increase to require a sharper saddle.
Advanced tuning.
max_offset: f32Maximum displacement from the seed to the fitted stationary point,
in pixels (>= 0); refinements that move farther are rejected.
The effective bound is also capped at radius + 0.5.
Advanced tuning.
min_abs_det: f32Minimum absolute value of det(H) (unitless, >= 0). Rejects
near-flat surfaces whose determinant is too close to zero to be
meaningful.
Advanced tuning.
Trait Implementations§
Source§impl Clone for SaddlePointConfig
impl Clone for SaddlePointConfig
impl Copy for SaddlePointConfig
Source§impl Debug for SaddlePointConfig
impl Debug for SaddlePointConfig
Source§impl Default for SaddlePointConfig
impl Default for SaddlePointConfig
Source§impl<'de> Deserialize<'de> for SaddlePointConfigwhere
SaddlePointConfig: Default,
impl<'de> Deserialize<'de> for SaddlePointConfigwhere
SaddlePointConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for SaddlePointConfig
impl JsonSchema for SaddlePointConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SaddlePointConfig
impl PartialEq for SaddlePointConfig
Source§impl Serialize for SaddlePointConfig
impl Serialize for SaddlePointConfig
impl StructuralPartialEq for SaddlePointConfig
Auto Trait Implementations§
impl Freeze for SaddlePointConfig
impl RefUnwindSafe for SaddlePointConfig
impl Send for SaddlePointConfig
impl Sync for SaddlePointConfig
impl Unpin for SaddlePointConfig
impl UnsafeUnpin for SaddlePointConfig
impl UnwindSafe for SaddlePointConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more