coders
Class DifferenceExpansion

java.lang.Object
  extended by coders.DifferenceExpansion

public class DifferenceExpansion
extends java.lang.Object

Author:
Jonathan L Dautrich Jr.

Field Summary
static BitSequence END_OF_MAP
           
 
Constructor Summary
DifferenceExpansion()
           
 
Method Summary
static java.util.ArrayList<DEPixelPair> getPairs(Bitmap bitmap, boolean horizontal)
          Returns a complete ordered list of pixel pairs in an order specified by the any parameters, for the current layer.
static java.util.ArrayList<DEPixelPair> getRandomPairs(Bitmap bitmap, long seed)
          Returns a complete list of pixel pairs where the pixels in each pair are selected pseudorandomly from the bitmap using the specified seed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END_OF_MAP

public static final BitSequence END_OF_MAP
Constructor Detail

DifferenceExpansion

public DifferenceExpansion()
Method Detail

getPairs

public static java.util.ArrayList<DEPixelPair> getPairs(Bitmap bitmap,
                                                        boolean horizontal)
Returns a complete ordered list of pixel pairs in an order specified by the any parameters, for the current layer. If horizontal is true, just pair each pixel with its next neighbor in a top-down, left-to-right fashion. If there is an odd number of pixels, ignore the last one. If horizontal is false, pair each pixel with the one in the row below it, still proceeding in a top-down, left-to-right fashion. If there is an odd number of rows, ignore the bottom one. Include all columns.


getRandomPairs

public static java.util.ArrayList<DEPixelPair> getRandomPairs(Bitmap bitmap,
                                                              long seed)
Returns a complete list of pixel pairs where the pixels in each pair are selected pseudorandomly from the bitmap using the specified seed.

Parameters:
bitmap -
seed -
Returns: