medpy.filter.houghtransform.ght_alternative#

medpy.filter.houghtransform.ght_alternative(img, template, indices)[source]#

Alternative implementation of the general hough transform, which uses iteration over indices rather than broadcasting rules like ght.

It is therefore considerably slower, especially for large, multi-dimensional arrays. The only application are cases, where the hough transform should only be computed for a small number of points (=template centers) in the image. In this case the indices of interest can be provided as a list.

Parameters:
imgarray_like

The image in which to search for the structure.

templatearray_like

A boolean array containing the structure to search for.

indicessequences

A sequence of image indices at which to compute the hough transform.

Returns:
hough_transformndarray

The general hough transformation image.