Package in.itzmeanjan.filterit
Class GrayScale
- java.lang.Object
-
- in.itzmeanjan.filterit.GrayScale
-
public class GrayScale extends java.lang.Object
Given a RGB image, it'll grayscale that image by taking mean of intensities ( intensity of each of three color components ) at each pixel location of image, while not modifying original imageIf you pass an grayscale image, it'll not do any harm, but that's nothing but waste of computation
-
-
Constructor Summary
Constructors Constructor Description GrayScale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
grayscale(java.awt.image.BufferedImage img)
Given a buffered image it'll concurrently compute grayscale of that imagejava.awt.image.BufferedImage
grayscale(java.lang.String src)
Computes grayscale of given image ( as filepath ), using above implementation
-
-
-
Method Detail
-
grayscale
public java.awt.image.BufferedImage grayscale(java.awt.image.BufferedImage img)
Given a buffered image it'll concurrently compute grayscale of that image
-
grayscale
public java.awt.image.BufferedImage grayscale(java.lang.String src)
Computes grayscale of given image ( as filepath ), using above implementation
-
-