BaseRht

A template that bootstraps a full Randomized Hough transform implementation. The basic primitives required are as follows.

Types: Curve and Key tuples that define curve parameters and accumulator key for the curve. Functions: curveKey - accumulator key for a curve, onCurve - test if a point is on curve, fitCurve - fit a curve to a given random access range of points.

Members

Aliases

Point
alias Point = Tuple!(int, "x", int, "y")
Undocumented in source.
This
alias This = typeof(this)
Undocumented in source.

Functions

epouchs
ref epouchs(int epouchs)
Undocumented in source. Be warned that the author may not have intended to support it.
iterations
ref iterations(int iters)
Undocumented in source. Be warned that the author may not have intended to support it.
minCurve
ref minCurve(int minimalCurve)
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
auto opCall(Slice!(kind, [2], T*) image)

Run RHT using non-zero points in image as edge points.

opCall
auto opCall(Slice!(kind, [2], T*) image, Range points)

Run RHT using prepopullated array of edge points (that may be filtered beforehand).

threshold
ref threshold(int threshold)

Set threshold for a curve to be considered in an accumulator

Static functions

isInvalidCurve
bool isInvalidCurve(Curve c)
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
auto opCall()
Undocumented in source. Be warned that the author may not have intended to support it.
toInt
auto toInt(double a)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

RhtRange
struct RhtRange(T, SliceKind kind, P)
Undocumented in source.

Variables

_epouchs
int _epouchs;
Undocumented in source.
_iters
int _iters;
Undocumented in source.
_minCurve
int _minCurve;
Undocumented in source.
_thrd
int _thrd;
Undocumented in source.

Meta