public class ImageQuilter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_OVERLAP_SIZE |
static int |
DEFAULT_PATCH_SIZE |
| Constructor and Description |
|---|
ImageQuilter(ij.process.ImageProcessor input,
int patchsize,
int overlapsize,
boolean allowHorizontalPaths,
double pathCostWeight)
This sets up the algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setPreviewImage(ij.ImagePlus previewImp) |
ij.process.ImageProcessor |
synthesize(int outwidth,
int outheight)
This synthesizes a new texture image with the given dimensions.
|
public static final int DEFAULT_PATCH_SIZE
public static final int DEFAULT_OVERLAP_SIZE
public ImageQuilter(ij.process.ImageProcessor input,
int patchsize,
int overlapsize,
boolean allowHorizontalPaths,
double pathCostWeight)
input - This is the texture to sample from.patchsize - This is the width (pixels) of the square patches used.overlapsize - This is the width (pixels) of the overlap region.allowHorizontalPaths - When finding min paths, can the path travel along a stage?pathCostWeight - The SSD for the overlap region and the min SSD path cost have the
same range. The total cost is then pathCost*pathCostWeight plus
ssd*(1-pathCostWeight).