Imp
[using it]
Interface Manipulation Package v4.0 (2008-06-25) a-projector ©copyright Author


imp.ima.util
Class Binary

java.lang.Object
  extended by imp.ima.util.RgbFilter
      extended by imp.ima.util.Binary

public class Binary
extends RgbFilter

Defines the binarization of the blue channel of an image.

Pixels below the threshold are set to 0 other pixels values are preserved.
An optimal bi-Gaussian threshold may be used


Constructor Summary
Binary(int threshold)
          Creates an image threshold of the blue channel.
 
Method Summary
static int[] getHisto(int[] src, int width, int height)
          Returns the histogram of the blue channel intensity.
static int getThreshold(int[] src, int width, int height)
          Returns an optimal bi-Gaussian threshold of the image blue channel.
 
Methods inherited from class imp.ima.util.RgbFilter
filterChannel, filterRGB, getChannel, getChannel, getRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Binary

public Binary(int threshold)
Creates an image threshold of the blue channel.

Method Detail

getHisto

public static int[] getHisto(int[] src,
                             int width,
                             int height)
Returns the histogram of the blue channel intensity.


getThreshold

public static int getThreshold(int[] src,
                               int width,
                               int height)
Returns an optimal bi-Gaussian threshold of the image blue channel.