public abstract class AbstractAffineTile2D<A extends Model<A> & Affine2D<A>> extends Tile<A>
Modifier and Type | Field and Description |
---|---|
protected Patch |
patch |
protected Set<PointMatch> |
virtualMatches
A set of virtual point correspondences that are used to connect a tile
to the rest of the
TileConfiguration assuming that the initial
layout was correct. |
connectedTiles, cost, matches, model
Constructor and Description |
---|
AbstractAffineTile2D(A model,
Patch patch) |
addConnectedTile, addMatch, addMatches, apply, apply, connect, findConnectedTile, fitModel, getConnectedTiles, getCost, getDistance, getMatches, getModel, identifyConnectedGraphs, removeConnectedTile, removeMatch, setModel, traceConnectedGraph, update, update, updateCost
protected final Patch patch
protected final Set<PointMatch> virtualMatches
TileConfiguration
assuming that the initial
layout was correct.
Virtual point correspondences are also stored in matches. This is just
to keep track about them.
Virtual point correspondences have to be removed
for real connections.
TODO Not yet tested---Do we need these virtual connections?public final Patch getPatch()
public final double getWidth()
public final double getHeight()
public final Set<PointMatch> getVirtualMatches()
public final boolean addVirtualMatch(PointMatch match)
public final boolean removeVirtualMatch(PointMatch match)
public final void clearVirtualMatches()
matches
.
TODO Not yet tested---Do we need these virtual connections?protected abstract void initModel()
public final AffineTransform createAffine()
public final void updatePatch()
public final ij.process.ByteProcessor createMaskedByteImage()
public final boolean intersects(AbstractAffineTile2D<?> t, boolean sloppy)
public final boolean intersects(AbstractAffineTile2D<?> t)
public final void makeVirtualConnection(AbstractAffineTile2D<?> t)
t
- public static final void pairTiles(List<AbstractAffineTile2D<?>> tiles, List<AbstractAffineTile2D<?>[]> tilePairs)
tiles
- tilePairs
- public static final <AAT extends AbstractAffineTile2D<?>> void pairOverlappingTiles(List<AAT> tiles, List<AbstractAffineTile2D<?>[]> tilePairs, boolean sloppyOverlapTest)
tiles
- tilePairs
- public static final <AAT extends AbstractAffineTile2D<?>> void pairOverlappingTiles(List<AAT> tiles, List<AbstractAffineTile2D<?>[]> tilePairs)
tiles
- tilePairs
- public static final void pairTiles(List<AbstractAffineTile2D<?>> tilesA, List<AbstractAffineTile2D<?>> tilesB, List<AbstractAffineTile2D<?>[]> tilePairs)
tilesA
- tilesB
- tilePairs
- public static final void pairOverlappingTiles(List<AbstractAffineTile2D<?>> tilesA, List<AbstractAffineTile2D<?>> tilesB, List<AbstractAffineTile2D<?>[]> tilePairs, boolean sloppyOverlapTest)
tilesA
- tilesB
- tilePairs
- public static final void pairOverlappingTiles(List<AbstractAffineTile2D<?>> tilesA, List<AbstractAffineTile2D<?>> tilesB, List<AbstractAffineTile2D<?>[]> tilePairs)
tilesA
- tilesB
- tilePairs
- public final void commonPointMatches(Tile<?> other, Collection<PointMatch> commonMatches)
other
- commonMatches
- Copyright © 2015–2021 Fiji. All rights reserved.