#[non_exhaustive]pub struct RadonPeakConfig {
pub ray_radius: u32,
pub patch_radius: u32,
pub image_upsample: u32,
pub response_blur_radius: u32,
pub peak_fit: PeakFitMode,
pub min_response: f32,
pub max_offset: f32,
}Expand description
Configuration for RadonPeakRefiner.
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.ray_radius: u32Half-length of each ray, in physical image pixels. The ray is
sampled with step 1 / image_upsample and contains
2·ray_radius·image_upsample + 1 samples in total.
Paper default is 2 (9 samples over 4 px at 2× supersampling).
patch_radius: u32Half-size of the response-search window around the rounded seed,
in physical image pixels. The response map has side
2·patch_radius·image_upsample + 1.
image_upsample: u32Supersampling factor. 1 operates on the original grid, 2
(paper default) is equivalent to computing the response on a
bilinearly-upsampled image. Applies both to ray-sample spacing
and to the response-map grid density.
response_blur_radius: u32Half-size of the box blur applied to the response map. 0
disables blurring; 1 (paper default) yields a 3×3 box.
peak_fit: PeakFitModePeak-fit mode. Defaults to PeakFitMode::Gaussian.
min_response: f32Reject candidates whose peak squared response is below this
threshold. 0.0 disables the filter — ChESS already rejected
non-corner candidates upstream.
max_offset: f32Reject refinements whose displacement from the rounded seed
exceeds this many pixels. Mirrors
SaddlePointConfig::max_offset.
Trait Implementations§
Source§impl Clone for RadonPeakConfig
impl Clone for RadonPeakConfig
Source§fn clone(&self) -> RadonPeakConfig
fn clone(&self) -> RadonPeakConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RadonPeakConfig
impl Debug for RadonPeakConfig
Source§impl Default for RadonPeakConfig
impl Default for RadonPeakConfig
Source§impl<'de> Deserialize<'de> for RadonPeakConfigwhere
RadonPeakConfig: Default,
impl<'de> Deserialize<'de> for RadonPeakConfigwhere
RadonPeakConfig: 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 PartialEq for RadonPeakConfig
impl PartialEq for RadonPeakConfig
Source§fn eq(&self, other: &RadonPeakConfig) -> bool
fn eq(&self, other: &RadonPeakConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RadonPeakConfig
impl Serialize for RadonPeakConfig
impl Copy for RadonPeakConfig
impl StructuralPartialEq for RadonPeakConfig
Auto Trait Implementations§
impl Freeze for RadonPeakConfig
impl RefUnwindSafe for RadonPeakConfig
impl Send for RadonPeakConfig
impl Sync for RadonPeakConfig
impl Unpin for RadonPeakConfig
impl UnsafeUnpin for RadonPeakConfig
impl UnwindSafe for RadonPeakConfig
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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