Skip to main content

Module response

Module response 

Source
Expand description

Whole-image Duda-Frese Radon response computation.

Computes the dense R(x, y) = (max_α S_α − min_α S_α)² response over four ray angles using summed-area tables for O(1) per-pixel ray sums. Optional 2× bilinear upsampling at the entry boosts accuracy on small chessboard cells.

§SAT element type

Summed-area tables default to i64, which is always safe. Enable the radon-sat-u32 crate feature to switch to u32, which halves SAT memory and widens SIMD lanes at the cost of a ~16 MP image-size cap (255 · W · H ≤ u32::MAX).

Structs§

RadonBuffers
Reusable scratch for the whole-image Radon detector. Holds the upsampled image buffer, the four summed-area tables, the response map, and the box-blur scratch. All buffers grow on demand and are reused across frames — same pattern as PyramidBuffers.
RadonDetectorParams
Configuration for the whole-image Radon detector.
RadonResponseView
Borrow of the dense working-resolution response map. Cheaply convertible to a ResponseMap via Self::to_response_map when ownership is required (e.g. for the classic detect_corners_from_response).

Constants§

MAX_IMAGE_UPSAMPLE
Supported image-upsample factors: {1, 2}. Anything higher would need a different upsampler; values >= 3 are clamped to 2 at the entry points rather than silently producing mismatched buffer sizes downstream.

Functions§

radon_response_u8
Compute the dense Radon response into buffers.response and return a read-only RadonResponseView at working resolution (i.e. input_dim × image_upsample).

Type Aliases§

SatElem
Summed-area-table element type (feature radon-sat-u32).