| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectj2d.thresh.AdapThresh
public class AdapThresh
AdapThresh is an algorithm to apply adaptive thresholding to an image.
| Constructor Summary | |
|---|---|
| AdapThresh() | |
| Method Summary | |
|---|---|
|  int | getSize() | 
| static void | main(java.lang.String[] args) | 
|  int[] | mean_thresh(int[] src,
            int width,
            int height,
            int size,
            int con)Applies the adaptive thresholding operator to the specified image array using the mean function to find the threshold value | 
|  int[] | meanMaxMin_thresh(int[] src,
                  int width,
                  int height,
                  int size,
                  int con)Applies the adaptive thresholding operator to the specified image array using the mean of max & min function to find the threshold value | 
|  int[] | median_thresh(int[] src,
              int width,
              int height,
              int size,
              int con)Applies the adaptive thresholding operator to the specified image array using the median function to find the threshold value | 
|  java.awt.Image | process(java.awt.Image image)a basic garbage in, garbage out processor. | 
|  void | setSize(int size) | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public AdapThresh()
| Method Detail | 
|---|
public int[] mean_thresh(int[] src,
                         int width,
                         int height,
                         int size,
                         int con)
src - pixel array representing image to be thresholdedwidth - width of the image in pixelsheight - height of the image in pixelssize - the size of the neigbourhood used in finding the thresholdcon - the constant value subtracted from the mean
public int[] median_thresh(int[] src,
                           int width,
                           int height,
                           int size,
                           int con)
src - pixel array representing image to be thresholdedwidth - width of the image in pixelsheight - height of the image in pixelssize - the size of the neigbourhood used in finding the thresholdcon - the constant value subtracted from the median
public int[] meanMaxMin_thresh(int[] src,
                               int width,
                               int height,
                               int size,
                               int con)
src - pixel array representing image to be thresholdedwidth - width of the image in pixelsheight - height of the image in pixelssize - the size of the neigbourhood used in finding the thresholdcon - the constant value subtracted from the mean
public static void main(java.lang.String[] args)
public java.awt.Image process(java.awt.Image image)
ImageProcessorInterface
process in interface ImageProcessorInterfaceimage - input image
public int getSize()
public void setSize(int size)
public java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||