Package in.itzmeanjan.filterit.bitwise
Class BitwiseLeftShift
- java.lang.Object
-
- in.itzmeanjan.filterit.bitwise.BitwiseLeftShift
-
public class BitwiseLeftShift extends java.lang.Object
Shifts each pixel intensity I[x, y] of given buffered image by applying left shift operator i.e. shifting intensity value by given number of bit places. Depending upon user choice transformed pixel intesities are either scaled / clipped.
-
-
Constructor Summary
Constructors Constructor Description BitwiseLeftShift()
-
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, boolean clip)
Applies bitwise left shift operator on each pixel P[x, y] of source image & result is stored in sink image.java.awt.image.BufferedImage
operate(java.lang.String filePath, int byPlace, boolean clip)
-
-
-
Method Detail
-
operate
public java.awt.image.BufferedImage operate(java.awt.image.BufferedImage src, int byPlace, boolean clip)
Applies bitwise left shift operator on each pixel P[x, y] of source image & result is 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 > 0 & consider not making it too high because that will eventually exceed [0, 255] range i.e. 8-bit pixel intensity value, which needs to be scaled / clipped depending upon user input
-
operate
public java.awt.image.BufferedImage operate(java.lang.String filePath, int byPlace, boolean clip)
-
-