Package org.ptolemy.opencv
Class ComputerVision.MakeGray
- java.lang.Object
 - 
- com.jhlabs.image.AbstractBufferedImageOp
 - 
- org.ptolemy.opencv.ComputerVision.MakeGray
 
 
 
- 
- All Implemented Interfaces:
 java.awt.image.BufferedImageOp,java.lang.Cloneable
- Enclosing class:
 - ComputerVision
 
public class ComputerVision.MakeGray extends AbstractBufferedImageOp
A filter that converts the image to grayscale. 
- 
- 
Constructor Summary
Constructors Constructor Description MakeGray() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage source, java.awt.image.BufferedImage destination)Convert the source image to grayscale.- 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor 
 - 
 
 - 
 
- 
- 
Method Detail
- 
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage source, java.awt.image.BufferedImage destination)Convert the source image to grayscale.- Parameters:
 source- The source image.destination- Not used here. Required by superclass.- Returns:
 - The grayscale image.
 
 
 - 
 
 -