HoughCircleTransformation Class |
Namespace: Accord.Imaging
The HoughCircleTransformation type exposes the following members.
Name | Description | |
---|---|---|
HoughCircleTransformation |
Initializes a new instance of the HoughCircleTransformation class.
|
Name | Description | |
---|---|---|
CirclesCount |
Found circles count.
| |
LocalPeakRadius |
Radius for searching local peak value.
| |
MaxIntensity |
Maximum found intensity in Hough map.
| |
MinCircleIntensity |
Minimum circle's intensity in Hough map to recognize a circle.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCirclesByRelativeIntensity |
Get circles with relative intensity higher then specified value.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetMostIntensiveCircles |
Get specified amount of circles with highest intensity.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessImage(Bitmap) |
Process an image building Hough map.
| |
ProcessImage(BitmapData) |
Process an image building Hough map.
| |
ProcessImage(UnmanagedImage) |
Process an image building Hough map.
| |
ToBitmap |
Ñonvert Hough map to bitmap.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
The class implements Hough circle transformation, which allows to detect circles of specified radius in an image.
The class accepts binary images for processing, which are represented by 8 bpp grayscale images. All black pixels (0 pixel's value) are treated as background, but pixels with different value are treated as circles' pixels.
Sample usage:
HoughCircleTransformation circleTransform = new HoughCircleTransformation( 35 ); // apply Hough circle transform circleTransform.ProcessImage( sourceImage ); Bitmap houghCirlceImage = circleTransform.ToBitmap( ); // get circles using relative intensity HoughCircle[] circles = circleTransform.GetCirclesByRelativeIntensity( 0.5 ); foreach ( HoughCircle circle in circles ) { // ... }
Initial image:
Hough circle transformation image: