Class Rotate

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

public class Rotate
extends java.lang.Thread

Rotate is an algorithm to apply rotation to an image

Author:
Timothy Sharman, Konstantinos Koryllos
See Also:
code.iface.rotate

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Rotate()
           
 
Method Summary
 int[] rotate(int[] src_1d, int width, int height, double angle)
          rotate applies a rotation operator to an image
 
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

Rotate

public Rotate()
Method Detail

rotate

public int[] rotate(int[] src_1d,
                    int width,
                    int height,
                    double angle)
rotate applies a rotation operator to an image
Parameters:
src_1d - The source image as a pixel array
width - width of the destination image in pixels
height - height of the destination image in pixels
angle - The angle to rotate the image by
Returns:
A pixel array containing the rotated image