Package in.itzmeanjan.filterit.bitwise
Class BitwiseRightShift
- java.lang.Object
-
- in.itzmeanjan.filterit.bitwise.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.
-
-
Constructor Summary
Constructors Constructor Description BitwiseRightShift()
-
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)
-
-
-
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)
-
-