devs.visionpackage.org.cmotch.visionlibrary
Class ColorManipulation

java.lang.Object
  extended by devs.visionpackage.org.cmotch.visionlibrary.ColorManipulation

public class ColorManipulation
extends java.lang.Object

Color manipulation class


Constructor Summary
ColorManipulation()
           
 
Method Summary
static java.awt.image.BufferedImage Binarization(java.awt.image.BufferedImage image)
          Take the input image and output it in black and white (Binarization)
static java.awt.image.BufferedImage grayscale(java.awt.image.BufferedImage image)
          Take the input image and output it in grayscale by adjusting the colorspace
static java.awt.image.BufferedImage grayscaleSimple(java.awt.image.BufferedImage image)
          Take the input image and output it in grayscale by adjusting the colorspace (More Efficent)
static java.awt.image.BufferedImage removeBinaryNoise(java.awt.image.BufferedImage inputImage)
          Remove binary noise from a binary image by checking the current pixel and the surronding pixels, if all the surronding pixels are black and the center pixel is white, it is deemed noise and set to black
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorManipulation

public ColorManipulation()
Method Detail

grayscale

public static java.awt.image.BufferedImage grayscale(java.awt.image.BufferedImage image)
Take the input image and output it in grayscale by adjusting the colorspace

Parameters:
image - BufferedImage
Returns:
BufferedImage

grayscaleSimple

public static java.awt.image.BufferedImage grayscaleSimple(java.awt.image.BufferedImage image)
Take the input image and output it in grayscale by adjusting the colorspace (More Efficent)

Parameters:
image - BufferedImage
Returns:
BufferedImage

Binarization

public static java.awt.image.BufferedImage Binarization(java.awt.image.BufferedImage image)
Take the input image and output it in black and white (Binarization)

Parameters:
image - BufferedImage
Returns:
BufferedImage

removeBinaryNoise

public static java.awt.image.BufferedImage removeBinaryNoise(java.awt.image.BufferedImage inputImage)
Remove binary noise from a binary image by checking the current pixel and the surronding pixels, if all the surronding pixels are black and the center pixel is white, it is deemed noise and set to black

Parameters:
inputImage1 - BufferedImage
Returns:
BufferedImage