Class ImageBitShift

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ImageBitShift

public class ImageBitShift
extends java.lang.Thread

ImageBitShift is an algorithm to apply arithmetic BitShift on a image

See Also:
code.iface.imagebitshift

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImageBitShift(int firstwidth)
          Constructs a new Image Operator
 
Method Summary
 int[] doBitShift(int[] src1_1d, int constant, boolean shiftleft, boolean wrap, int width, int height, float oset, float scale)
          BitShifts the specified input image by the constant, also adds offset and scales
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageBitShift

public ImageBitShift(int firstwidth)
Constructs a new Image Operator
Parameters:
fistwidth - The width of the input image
Method Detail

doBitShift

public int[] doBitShift(int[] src1_1d,
                        int constant,
                        boolean shiftleft,
                        boolean wrap,
                        int width,
                        int height,
                        float oset,
                        float scale)
BitShifts the specified input image by the constant, also adds offset and scales
Parameters:
src1_1d - The input pixel array
constant - The constant value to shift every pixel value by
shiftleft - Boolean to specify a left or right bit shift
wrap - Boolean to specify if the shifted values should be wrapped
width - width of the destination image in pixels
height - height of the destination image in pixels
oset - The offset value
scale - The scale value
Returns:
A pixel array containing the shifted image