|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthoughtransform.HoughLines
public class HoughLines
Houghtransformation (HT) for lines.
Constructor Summary | |
---|---|
HoughLines(ij.ImagePlus imp,
int alphaBins,
int dBins)
Constructor. |
Method Summary | |
---|---|
void |
accumulateHoughCurve(int x,
int y)
Draws one hough curve for a specified image pixel x,y in accumulator array. |
void |
fillHoughSpace()
Fills the accumulator array, |
ij.ImagePlus |
getHoughSpaceImage()
Returns a visual correct result of the houghspace. |
ij.ImagePlus |
getImageWithHoughLines(java.util.List<java.awt.Point> maxima)
Builds an image with the input image in the background an the fitted red lines specified by the list of maximas. |
java.util.List<java.awt.Point> |
getMaximaByRelativeIntensity(double relInt)
Gets a list of maximum votes in houghspace by relative intensity, that mean every point in houghspace which votecount is greater relInt * nr. maximal votes. |
ij.ImagePlus |
getMaximaImage(java.util.List<java.awt.Point> maxima)
Returns an image with marked houspace maxima given by maxima. |
java.util.List<java.awt.Point> |
getNonBlackPixels()
Returns a list of all non black pixel positions. |
java.util.List<java.awt.Point> |
nonMaximumSupression(java.util.List<java.awt.Point> maxima,
ij.ImagePlus maximaImage,
double maxThreshold)
Suppress maxima in local neighborhood. |
java.util.List<java.awt.Point> |
reduceMaxima(java.util.List<java.awt.Point> maxima,
ij.ImagePlus maximaImage,
int count)
Reduces the list of maximas to count elements. |
void |
stop()
Stops filling the accumulator array, because computation can be expensive. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HoughLines(ij.ImagePlus imp, int alphaBins, int dBins)
imp
- Image to perform HT on, should be an binary image (at least 8-bit).alphaBins
- Number of bins in alpha direction.dBins
- Number of bins in d direction.Method Detail |
---|
public java.util.List<java.awt.Point> getNonBlackPixels()
public void fillHoughSpace()
public void stop()
public void accumulateHoughCurve(int x, int y)
x
- X Coordinate of image pixel.y
- Y Coordinate of image pixel.public ij.ImagePlus getHoughSpaceImage()
public java.util.List<java.awt.Point> getMaximaByRelativeIntensity(double relInt)
public ij.ImagePlus getMaximaImage(java.util.List<java.awt.Point> maxima)
maxima
- List of maxima points.
public java.util.List<java.awt.Point> nonMaximumSupression(java.util.List<java.awt.Point> maxima, ij.ImagePlus maximaImage, double maxThreshold)
maxima
- List of maxima.maximaImage
- Image consisting of maxima pixel.maxThreshold
- Suppress only maxima which where maxThreshold smaller.
public java.util.List<java.awt.Point> reduceMaxima(java.util.List<java.awt.Point> maxima, ij.ImagePlus maximaImage, int count)
maxima
- List of maximas.maximaImage
- Image consisting of maxima pixel.count
- Count of maximas remaining.
public ij.ImagePlus getImageWithHoughLines(java.util.List<java.awt.Point> maxima)
maxima
- List of maxima.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |