public class StitchingTEM extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StitchingTEM.PhaseCorrelationParam
Phase correlation parameters class
|
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_MIN_R |
static int |
DONE |
static int |
ERROR |
static int |
INTERRUPTED |
static int |
LEFT_RIGHT |
static int |
SUCCESS |
static int |
TOP_BOTTOM |
static int |
WORKING |
Constructor and Description |
---|
StitchingTEM() |
Modifier and Type | Method and Description |
---|---|
static double[] |
correlate(Patch base,
Patch moving,
float percent_overlap,
double scale,
int direction,
double default_dx,
double default_dy,
double min_R) |
static ij.process.ImageProcessor |
makeStripe(Patch p,
Roi roi,
double scale) |
static ij.process.ImageProcessor |
makeStripe(Patch p,
Roi roi,
double scale,
boolean ignore_patch_transform) |
static void |
montageWithPhaseCorrelation(Collection<Patch> col) |
static void |
montageWithPhaseCorrelation(Collection<Patch> col,
StitchingTEM.PhaseCorrelationParam param)
Perform montage based on phase correlation
|
static void |
montageWithPhaseCorrelation(List<Layer> layers,
Worker worker) |
static Bureaucrat |
montageWithPhaseCorrelationTask(Collection<Patch> col)
For each Patch, find who overlaps with it and perform a phase correlation or cross-correlation with it;
then consider all successful correlations as links and run the optimizer on it all.
|
static Bureaucrat |
montageWithPhaseCorrelationTask(List<Layer> layers) |
static void |
optimizeTileConfiguration(ArrayList<AbstractAffineTile2D<?>> tiles,
ArrayList<AbstractAffineTile2D<?>> fixed_tiles,
StitchingTEM.PhaseCorrelationParam param)
Optimize tile configuration by removing bad matches
|
static Runnable |
stitch(Patch[] patch,
int grid_width,
double default_bottom_top_overlap,
double default_left_right_overlap,
boolean optimize,
StitchingTEM.PhaseCorrelationParam param)
Returns the same Patch instances with their coordinates modified; the top-left image is assumed to be the first one, and thus serves as reference; so, after the first image, coordinates are ignored for each specific Patch.
|
public static final int WORKING
public static final int DONE
public static final int ERROR
public static final int INTERRUPTED
public static final int SUCCESS
public static final int TOP_BOTTOM
public static final int LEFT_RIGHT
public static final float DEFAULT_MIN_R
public static Runnable stitch(Patch[] patch, int grid_width, double default_bottom_top_overlap, double default_left_right_overlap, boolean optimize, StitchingTEM.PhaseCorrelationParam param)
public static ij.process.ImageProcessor makeStripe(Patch p, Roi roi, double scale, boolean ignore_patch_transform)
ignore_patch_transform
- will prevent resizing of the ImageProcessor in the event of the Patch having a transform different than identity.public static double[] correlate(Patch base, Patch moving, float percent_overlap, double scale, int direction, double default_dx, double default_dy, double min_R)
scale
- For optimizing the speed of phase- and cross-correlation.percent_overlap
- The minimum chunk of adjacent images to compare with, will automatically and gradually increase to 100% if no good matches are found.public static Bureaucrat montageWithPhaseCorrelationTask(Collection<Patch> col)
public static void montageWithPhaseCorrelation(Collection<Patch> col)
public static Bureaucrat montageWithPhaseCorrelationTask(List<Layer> layers)
public static void montageWithPhaseCorrelation(List<Layer> layers, Worker worker)
layers
- worker
- Optional, the Worker
running this task.public static void montageWithPhaseCorrelation(Collection<Patch> col, StitchingTEM.PhaseCorrelationParam param)
col
- collection of patchesparam
- phase correlation parameterspublic static void optimizeTileConfiguration(ArrayList<AbstractAffineTile2D<?>> tiles, ArrayList<AbstractAffineTile2D<?>> fixed_tiles, StitchingTEM.PhaseCorrelationParam param)
tiles
- complete list of tilesfixed_tiles
- list of fixed tilesparam
- phase correlation parametersCopyright © 2015–2021 Fiji. All rights reserved.