mpicbg.imglib.algorithm.transformation

## Class HoughLineTransform<S extends RealType<S>,T extends Type<T> & Comparable<T>>

• All Implemented Interfaces:
Algorithm, Benchmark, OutputAlgorithm<S>

```public class HoughLineTransform<S extends RealType<S>,T extends Type<T> & Comparable<T>>
extends HoughTransform<S,T>```
A class that extends `HoughTransform` to handle Hough Line voting over an edge map. This implementation uses a threshold to determine whether a pixel at a certain point is an edge or not. Comparison is strictly-greater-than. This implementation is fairly dumb in that it does not take gradients into account. The threshold used is the default value returned by calling the constructor for the `Type` of the input `Image`. Vote space here has two dimensions: rho and theta. Theta is measured in radians [-pi/2 pi/2), rho is measured in [-rhoMax, rhoMax). Lines are modeled as l(t) = | x | = rho * | cos(theta) | + t * | sin(theta) | | y | | -sin(theta) | | cos(theta) | In other words, rho represents the signed minimum distance from the image origin to the line, and theta indicates the angle between the row-axis and the minimum offset vector. For a given point, then, votes are placed along the curve rho = y * sin(theta) - x * cos(theta)
• ### Field Summary

Fields
Modifier and Type Field and Description
`static int` `DEFAULT_THETA`
`double` `dRho`
`double` `dTheta`
• ### Fields inherited from class mpicbg.imglib.algorithm.transformation.HoughTransform

`pTime`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`static int` `defaultRho(Image<?> inputImage)`
Calculates a default number of rho bins, which corresponds to a resolution of one pixel.
`ArrayList<double[]>` `getTranslatedPeakList()`
`static <T extends Type<T> & Comparable<T>>HoughLineTransform<IntType,T>` `integerHoughLine(Image<T> inputImage)`
Creates a default `HoughLineTransform` with vote space.
`static <T extends Type<T> & Comparable<T>>HoughLineTransform<LongType,T>` `longHoughLine(Image<T> inputImage)`
Creates a default `HoughLineTransform` with `LongType` vote space.
`boolean` `process()`
`void` `setThreshold(T inThreshold)`
`static <T extends Type<T> & Comparable<T>>HoughLineTransform<ShortType,T>` `shortHoughLine(Image<T> inputImage)`
Creates a default `HoughLineTransform` with vote space.
• ### Methods inherited from class mpicbg.imglib.algorithm.transformation.HoughTransform

`checkInput, getErrorMessage, getImage, getPeakList, getProcessingTime, getResult, pickPeaks, placeVote, placeVote, setErrorMsg, setExclusion`
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`