Catalano.Imaging.Tools
Class HoughLine
- java.lang.Object
-
- Catalano.Imaging.Tools.HoughLine
-
- All Implemented Interfaces:
- java.lang.Comparable
public class HoughLine extends java.lang.Object implements java.lang.ComparableRepresents line of Hough Line Transformation.
-
-
Constructor Summary
Constructors Constructor and Description HoughLine()Initialize a new instance of the HoughLine class.HoughLine(double theta, double radius, int intensity, double relativeIntensity)Initialize a new instance of the HoughLine class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(java.lang.Object o)voidDrawLine(FastBitmap fastBitmap, int gray)Draw line.voidDrawLine(FastBitmap fastBitmap, int red, int green, int blue)Draw line.intgetIntensity()Get Intensity.doublegetRadius()Get Radius.doublegetRelativeIntensity()Get Relative intensity.doublegetTheta()Get Theta.voidsetIntensity(int intensity)Set Intensity.voidsetRadius(double r)Set Radius.voidsetRelativeIntensity(double relativeIntensity)Set Relative intensity.voidsetTheta(double theta)Set Theta.
-
-
-
Constructor Detail
-
HoughLine
public HoughLine()
Initialize a new instance of the HoughLine class.
-
HoughLine
public HoughLine(double theta, double radius, int intensity, double relativeIntensity)Initialize a new instance of the HoughLine class.- Parameters:
theta- Angle.radius- Radius.intensity- Intensity.relativeIntensity- Relative intensity.
-
-
Method Detail
-
getRadius
public double getRadius()
Get Radius.- Returns:
- Radius.
-
setRadius
public void setRadius(double r)
Set Radius.- Parameters:
r- Radius.
-
getTheta
public double getTheta()
Get Theta.- Returns:
- Theta.
-
setTheta
public void setTheta(double theta)
Set Theta.- Parameters:
theta- Theta.
-
getIntensity
public int getIntensity()
Get Intensity.- Returns:
- Intensity.
-
setIntensity
public void setIntensity(int intensity)
Set Intensity.- Parameters:
intensity- Intensity.
-
getRelativeIntensity
public double getRelativeIntensity()
Get Relative intensity.- Returns:
- Relative intensity.
-
setRelativeIntensity
public void setRelativeIntensity(double relativeIntensity)
Set Relative intensity.- Parameters:
relativeIntensity- Relative intensity.
-
DrawLine
public void DrawLine(FastBitmap fastBitmap, int gray)
Draw line.- Parameters:
fastBitmap- Image to be processed.gray- Gray Channel.
-
DrawLine
public void DrawLine(FastBitmap fastBitmap, int red, int green, int blue)
Draw line.- Parameters:
fastBitmap- Image to be processed.red- Red Channel.green- Green Channel.blue- Blue Channel.
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.lang.Comparable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG