public final class AlignTask extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AlignTask.ReferenceData |
Modifier and Type | Field and Description |
---|---|
protected static boolean |
deform |
protected static boolean |
deleteDisconnectedTiles |
static int |
ELASTIC_BLOCK_CORRESPONDENCES |
protected static boolean |
hideDisconnectedTiles |
protected static boolean |
largestGraphOnly |
static int |
LINEAR_PHASE_CORRELATION |
static int |
LINEAR_SIFT_CORRESPONDENCES |
protected static int |
mode
The mode used for alignment, which defaults to LINEAR_SIFT_CORRESPONDENCES
but can take the values ELASTIC_BLOCK_CORRESPONDENCES and LINEAR_PHASE_CORRELATION.
|
static Align.ParamOptimize |
p_snap
The ParamOptimize object containg all feature extraction and registration model parameters for the "snap" function.
|
protected static boolean |
sloppyOverlapTest |
protected static boolean |
tilesAreInPlace |
Constructor and Description |
---|
AlignTask() |
Modifier and Type | Method and Description |
---|---|
static void |
alignMultiLayerMosaic(Layer l,
Patch nail)
Align a multi-layer mosaic.
|
static Bureaucrat |
alignMultiLayerMosaicTask(Layer l) |
static Bureaucrat |
alignMultiLayerMosaicTask(Layer l,
Patch nail) |
static void |
alignMultiLayerMosaicTask(List<Layer> layerRange,
Patch nail,
Align.Param cp,
Align.ParamOptimize p,
Align.ParamOptimize pcp,
boolean tilesAreInPlaceIn,
boolean largestGraphOnlyIn,
boolean hideDisconnectedTilesIn,
boolean deleteDisconnectedTilesIn,
boolean deformIn) |
static void |
alignPatches(Align.ParamOptimize p,
List<Patch> patches,
Collection<Patch> fixedPatches,
boolean tilesAreInPlaceIn,
boolean largestGraphOnlyIn,
boolean hideDisconnectedTilesIn,
boolean deleteDisconnectedTilesIn) |
static void |
alignPatches(Align.ParamOptimize p,
List<Patch> patches,
Collection<Patch> fixedPatches,
boolean tilesAreInPlaceIn,
boolean largestGraphOnlyIn,
boolean hideDisconnectedTilesIn,
boolean deleteDisconnectedTilesIn,
boolean sloppyOverlapTest) |
static void |
alignPatches(List<Patch> patches,
Set<Patch> fixedPatches,
int m) |
static Bureaucrat |
alignPatchesTask(List<Patch> patches,
Set<Patch> fixedPatches) |
static void |
alignSelection(Selection selection,
int m) |
static Bureaucrat |
alignSelectionTask(Selection selection) |
static void |
alignTiles(Align.ParamOptimize p,
List<AbstractAffineTile2D<?>> tiles,
List<AbstractAffineTile2D<?>> fixedTiles,
boolean tilesAreInPlaceIn,
boolean largestGraphOnlyIn,
boolean hideDisconnectedTilesIn,
boolean deleteDisconnectedTilesIn) |
static void |
alignTiles(Align.ParamOptimize p,
List<AbstractAffineTile2D<?>> tiles,
List<AbstractAffineTile2D<?>> fixedTiles,
boolean tilesAreInPlaceIn,
boolean largestGraphOnlyIn,
boolean hideDisconnectedTilesIn,
boolean deleteDisconnectedTilesIn,
boolean sloppyOverlapTest) |
static AlignTask.ReferenceData |
createTransformPropertiesTable(List<Displayable> src_vdata,
List<Displayable> tgt_vdata,
Set<Long> lids_to_operate)
Creates a map only for visible patches that intersect vdata.
|
static void |
montageLayers(Align.ParamOptimize p,
List<Layer> layers,
boolean tilesAreInPlaceIn,
boolean largestGraphOnlyIn,
boolean hideDisconnectedTilesIn,
boolean deleteDisconnectedTilesIn) |
static void |
montageLayers(Align.ParamOptimize p,
List<Layer> layers,
boolean tilesAreInPlaceIn,
boolean largestGraphOnlyIn,
boolean hideDisconnectedTilesIn,
boolean deleteDisconnectedTilesIn,
boolean sloppyOverlapTest) |
static void |
montageLayers(ElasticMontage.Param p,
List<Layer> layers) |
static Bureaucrat |
montageLayersTask(List<Layer> layers)
Montage each layer independently.
|
static Bureaucrat |
registerStackSlices(Patch slice) |
static Bureaucrat |
snap(Patch patch,
Align.ParamOptimize p_snapIn,
boolean setup)
Find the most overlapping image to @param patch in the same layer where @param patch sits, and snap @param patch and all its linked Displayable objects.
|
static void |
transformPatchesAndVectorData(Collection<Patch> patches,
AffineTransform a) |
static void |
transformPatchesAndVectorData(Collection<Patch> patches,
Runnable alignment)
For registering within the same project instance.
|
static void |
transformPatchesAndVectorData(Layer layer,
AffineTransform a) |
static void |
transformVectorData(AlignTask.ReferenceData rd,
Collection<Displayable> vdata,
LayerSet target_layerset) |
protected static boolean tilesAreInPlace
protected static boolean sloppyOverlapTest
protected static boolean largestGraphOnly
protected static boolean hideDisconnectedTiles
protected static boolean deleteDisconnectedTiles
protected static boolean deform
public static final int LINEAR_PHASE_CORRELATION
public static final int LINEAR_SIFT_CORRESPONDENCES
public static final int ELASTIC_BLOCK_CORRESPONDENCES
protected static int mode
public static final Align.ParamOptimize p_snap
public static final Bureaucrat alignSelectionTask(Selection selection)
public static final void alignSelection(Selection selection, int m) throws Exception
Exception
public static final Bureaucrat alignPatchesTask(List<Patch> patches, Set<Patch> fixedPatches)
public static final void alignPatches(List<Patch> patches, Set<Patch> fixedPatches, int m) throws Exception
patches:
- the list of Patch instances to align, all belonging to the same Layer.fixedPatches:
- the list of Patch instances to keep locked in place, if any.m:
- LINEAR_SIFT_CORRESPONDENCES
, LINEAR_PHASE_CORRELATION
or ELASTIC_BLOCK_CORRESPONDENCES
.Exception
public static final Bureaucrat montageLayersTask(List<Layer> layers)
public static final void montageLayers(Align.ParamOptimize p, List<Layer> layers, boolean tilesAreInPlaceIn, boolean largestGraphOnlyIn, boolean hideDisconnectedTilesIn, boolean deleteDisconnectedTilesIn, boolean sloppyOverlapTest)
public static final void montageLayers(Align.ParamOptimize p, List<Layer> layers, boolean tilesAreInPlaceIn, boolean largestGraphOnlyIn, boolean hideDisconnectedTilesIn, boolean deleteDisconnectedTilesIn)
public static final void montageLayers(ElasticMontage.Param p, List<Layer> layers) throws Exception
Exception
public static final void transformPatchesAndVectorData(Layer layer, AffineTransform a)
public static final void transformPatchesAndVectorData(Collection<Patch> patches, AffineTransform a)
public static final AlignTask.ReferenceData createTransformPropertiesTable(List<Displayable> src_vdata, List<Displayable> tgt_vdata, Set<Long> lids_to_operate)
src_vdata
- represents the VectorData instances in original form, of the original project and layer set.tgt_vdata
- if not null, it must have the same size as src_data and their elements correspond one-to-one (as in, tgt element a clone of src element at the same index).lids_to_operate
- The id of the layers on which any operation will be done
tgt_data enables transformVectorData to apply the transforms to copies of the src_vdata in another project.public static final void transformPatchesAndVectorData(Collection<Patch> patches, Runnable alignment)
public static final void transformVectorData(AlignTask.ReferenceData rd, Collection<Displayable> vdata, LayerSet target_layerset)
public static final void alignPatches(Align.ParamOptimize p, List<Patch> patches, Collection<Patch> fixedPatches, boolean tilesAreInPlaceIn, boolean largestGraphOnlyIn, boolean hideDisconnectedTilesIn, boolean deleteDisconnectedTilesIn, boolean sloppyOverlapTest)
public static final void alignPatches(Align.ParamOptimize p, List<Patch> patches, Collection<Patch> fixedPatches, boolean tilesAreInPlaceIn, boolean largestGraphOnlyIn, boolean hideDisconnectedTilesIn, boolean deleteDisconnectedTilesIn)
public static final void alignTiles(Align.ParamOptimize p, List<AbstractAffineTile2D<?>> tiles, List<AbstractAffineTile2D<?>> fixedTiles, boolean tilesAreInPlaceIn, boolean largestGraphOnlyIn, boolean hideDisconnectedTilesIn, boolean deleteDisconnectedTilesIn, boolean sloppyOverlapTest)
public static final void alignTiles(Align.ParamOptimize p, List<AbstractAffineTile2D<?>> tiles, List<AbstractAffineTile2D<?>> fixedTiles, boolean tilesAreInPlaceIn, boolean largestGraphOnlyIn, boolean hideDisconnectedTilesIn, boolean deleteDisconnectedTilesIn)
public static final Bureaucrat alignMultiLayerMosaicTask(Layer l)
public static final Bureaucrat alignMultiLayerMosaicTask(Layer l, Patch nail)
public static final void alignMultiLayerMosaic(Layer l, Patch nail)
l
- the current layerpublic static final void alignMultiLayerMosaicTask(List<Layer> layerRange, Patch nail, Align.Param cp, Align.ParamOptimize p, Align.ParamOptimize pcp, boolean tilesAreInPlaceIn, boolean largestGraphOnlyIn, boolean hideDisconnectedTilesIn, boolean deleteDisconnectedTilesIn, boolean deformIn)
public static final Bureaucrat snap(Patch patch, Align.ParamOptimize p_snapIn, boolean setup)
public static final Bureaucrat registerStackSlices(Patch slice)
Copyright © 2015–2021 Fiji. All rights reserved.