public class SynthAide
extends java.lang.Object
Constructor and Description |
---|
SynthAide() |
Modifier and Type | Method and Description |
---|---|
static void |
blend(Patch fromPatch,
Patch toPatch,
int x,
int y,
double frompart)
This blends the pixel values at (x,y) from the two patches and puts the result in toPatch.
|
static void |
copy(View from,
View to,
int firstx,
int firsty,
int width,
int height)
This copies a rectangular region of pixels from one view to another.
|
static double[][] |
gaussian(int length)
This returns a square 2D normalized Gaussian filter of the given size.
|
static java.util.LinkedList<TwoDLoc> |
lessThanEqual(double[][] vals,
double threshold)
This searches the given array for all non-negative values less than or equal to a given
threshold and returns the list of array indicies of matches.
|
static int |
ssd(View view1,
View view2,
int x,
int y)
This computes the sum (across channels) of squared differences between the pixel values at
the given coordinate in the given views.
|
public static void copy(View from, View to, int firstx, int firsty, int width, int height)
public static double[][] gaussian(int length)
public static java.util.LinkedList<TwoDLoc> lessThanEqual(double[][] vals, double threshold)
public static void blend(Patch fromPatch, Patch toPatch, int x, int y, double frompart)
frompart
- This gives the ration of the fromPatch value to use (0 <= frompart <= 1). The
rest of the value comes from toPatch.