Class Affine

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

public class Affine
extends java.lang.Thread

Affine is an algorithm to apply an Affine Trasformation on an image

See Also:
code.iface.affine

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Affine(int firstwidth, int secondwidth)
          Constructs a new Affine operator
 
Method Summary
 int[] affine_transform(int[] src_1d, int width, int height, float[] a_array, float[] b_array)
          Applies the Affine operator on the specified image array
 
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

Affine

public Affine(int firstwidth,
              int secondwidth)
Constructs a new Affine operator
Parameters:
firstwidth - The width of the first image
secondwidth - The width of the second image
Method Detail

affine_transform

public int[] affine_transform(int[] src_1d,
                              int width,
                              int height,
                              float[] a_array,
                              float[] b_array)
Applies the Affine operator on the specified image array
Parameters:
src_1d - The first source image as a pixel array
width - width of the destination image in pixels
height - height of the destination image in pixels
a_array - A 2x2 array used to find the transformation
b_array - A 1x1 array used to find the transformation
Returns:
A pixel array containing the transformed image