Class BitwiseRightShift


  • public class BitwiseRightShift
    extends java.lang.Object
    Given one buffered image / path to image file & number of bit positions by which pixel intensity to be shifted ( rightwards ), it'll compute transformed image by picking each row up & applying bitwise right shift operator on each pixel intensity value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage operate​(java.awt.image.BufferedImage src, int byPlace)
      Applies bitwise right shift operator on each pixel P[x, y] of source image & result being stored in sink image.
      java.awt.image.BufferedImage operate​(java.lang.String filePath, int byPlace)  
      • Methods inherited from class java.lang.Object

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

      • BitwiseRightShift

        public BitwiseRightShift()
    • Method Detail

      • operate

        public java.awt.image.BufferedImage operate​(java.awt.image.BufferedImage src,
                                                    int byPlace)
        Applies bitwise right shift operator on each pixel P[x, y] of source image & result being stored in sink image.

        Each row of image gets processed concurrently, leveraging power of modern multi threaded multi core CPUs

        Number of bit positions by which each pixel intensity to be shifted needs to be positive integer & consider not making it greater than 8, because we're working with 24-bit images ( where each color component is represented using 8-bit integer )

      • operate

        public java.awt.image.BufferedImage operate​(java.lang.String filePath,
                                                    int byPlace)