Skip to content

A Java Program for detecting circles within a given image by using Circle Hough Transform (CHT)

License

Notifications You must be signed in to change notification settings

domenico-rgs/CircleHough

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleHough

forthebadge

License: GPL v3

A Java Program for detecting circles within a given image by using Circle Hough Transform (CHT).

It displays and stores to the project /results directory (automatically created):

  • the gray-scale image (gray.png)
  • the blurred image (blur.png)
  • the sobel image (sobel.png)
  • the image with pixels above threshold (aboveThreshold.png)
  • the image with detected circles in red (detectedCircles.png).

Based on:

How-To-Use

  1. Open a terminal in the project directory

  2. Compile Java source code by running:
    make

  3. Run the Main program by running:
    java circleHough.Main imagePath [sobelThreshold] [minRadius] [maxRadius] [circleThreshold]

    Arguments:

    • imagePath (required): path of the image file.
    • sobelThreshold (optional): is the threshold for the sobel filter, used to discard useless details . Default: 150.
    • minRadius (optional): minimum radius of the circles to be detected (in px). Default: 10.
    • maxRadius (optional): maximum radius of the circles to be detected (in px). Default: 100.
    • circles (optional): number of detected circles to print. Default: 1.

About

A Java Program for detecting circles within a given image by using Circle Hough Transform (CHT)

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Java 98.7%
  • Makefile 1.3%