boost::gil::make_theta_parameter

Create a Hough transform parameter with optimal angle step

Synopsis

hough_parameter<double>
make_theta_parameter(
    double approx_angle,
    double neighborhood,
    point_t dimensions);

Description

Due to computational intensity and noise sensitivity of Hough transform, having any candidates missed or computed again is problematic. This function will properly encapsulate optimal value range around approx_angle with amplitude of neighborhood in each direction. WARNING: do keep in mind IEEE 754 quirks, e.g. no‐associativity, no‐commutativity and precision. Do not expect expressions that are mathematically the same to produce the same values

Return Value

A type to encapsulate Hough transform parameter range

Parameters

Name

Description

dimensions

Common type to represent 2D dimensions or in‐memory size of image or view.

Created with MrDocs