Class 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 image

    If 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 image
      java.awt.image.BufferedImage grayscale​(java.lang.String src)
      Computes grayscale of given image ( as filepath ), using above implementation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrayScale

        public GrayScale()
    • 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