sigus.templateMatching
Class HoughCircles_

java.lang.Object
  extended bysigus.templateMatching.HoughCircles_
All Implemented Interfaces:
ij.plugin.filter.PlugInFilter

public class HoughCircles_
extends java.lang.Object
implements ij.plugin.filter.PlugInFilter

HoughCircles_.java This ImageJ plugin shows the Hough Transform Space for circles of predefined radius. The source image must be an 8-Bit black & white.

Author:
Hemerson Pistori (pistori@ec.ucdb.br) e Eduardo Rocha Costa (eduardo.rocha@poli.usp.br) The Hough Transform implementation was based on an applet by Mark A. Schulze (http://www.markschulze.net/)

Field Summary
(package private)  java.awt.Point[] centerPoint
           
 int height
           
(package private)  double[][] houghValues
           
(package private)  byte[] imageValues
           
 int maxCircles
           
 int offset
           
 int offx
           
 int offy
           
 float radius
           
 int threshold
           
(package private)  boolean useThreshold
           
private  int vectorMaxSize
           
 int width
           
 
Fields inherited from interface ij.plugin.filter.PlugInFilter
DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, ROI_REQUIRED, STACK_REQUIRED, SUPPORTS_MASKING
 
Constructor Summary
HoughCircles_()
           
 
Method Summary
private  void createHoughPixels(byte[] houghPixels)
           
 void drawCircles(byte[] circlespixels)
           
private  void getCenterPoints(int i)
           
private  void getCenterPointsByThreshold(int threshold)
           
private  void houghTransform()
           
 java.awt.Point nthMaxCenter(int i)
           
private  boolean outOfBounds(int y, int x)
           
(package private)  boolean readParameters()
           
 void run(ij.process.ImageProcessor ip)
           
 int setup(java.lang.String arg, ij.ImagePlus imp)
           
(package private)  void showAbout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

public float radius

maxCircles

public int maxCircles

threshold

public int threshold

imageValues

byte[] imageValues

houghValues

double[][] houghValues

width

public int width

height

public int height

offset

public int offset

offx

public int offx

offy

public int offy

centerPoint

java.awt.Point[] centerPoint

vectorMaxSize

private int vectorMaxSize

useThreshold

boolean useThreshold
Constructor Detail

HoughCircles_

public HoughCircles_()
Method Detail

setup

public int setup(java.lang.String arg,
                 ij.ImagePlus imp)
Specified by:
setup in interface ij.plugin.filter.PlugInFilter

run

public void run(ij.process.ImageProcessor ip)
Specified by:
run in interface ij.plugin.filter.PlugInFilter

showAbout

void showAbout()

readParameters

boolean readParameters()

houghTransform

private void houghTransform()

createHoughPixels

private void createHoughPixels(byte[] houghPixels)

drawCircles

public void drawCircles(byte[] circlespixels)

outOfBounds

private boolean outOfBounds(int y,
                            int x)

nthMaxCenter

public java.awt.Point nthMaxCenter(int i)

getCenterPoints

private void getCenterPoints(int i)

getCenterPointsByThreshold

private void getCenterPointsByThreshold(int threshold)