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


imp.ima.util
Class Monochrome

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

public class Monochrome
extends RgbFilter

Defines the conversion from color to monochrome.

The monochrome channel is calculated as a linear combination: m[0] * red + m[1] * green + m[2] * blue of the red-green-blue channels.
The intensity along the direction of maximal 2nd order momentum in the color space can be considered.


Constructor Summary
Monochrome(double[] m)
          Creates a monochrome channel calculator.
 
Method Summary
static double[] getMonochromeDirection(int[] src, int width, int height)
          Returns the direction of maximal 2nd order momentum in the color space.
 
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

Monochrome

public Monochrome(double[] m)
Creates a monochrome channel calculator.

Method Detail

getMonochromeDirection

public static double[] getMonochromeDirection(int[] src,
                                              int width,
                                              int height)
Returns the direction of maximal 2nd order momentum in the color space.