public class TransformMeshMapping<T extends TransformMesh> extends InvertibleTransformMapping<T>
TransformMesh
to map and map inversely
source into target
which is an InvertibleMapping
.transform
Constructor and Description |
---|
TransformMeshMapping(T t) |
Modifier and Type | Method and Description |
---|---|
protected static void |
calculateBoundingBox(ArrayList<PointMatch> pm,
double[] min,
double[] max) |
protected static void |
calculateBoundingBoxInverse(ArrayList<PointMatch> pm,
double[] min,
double[] max) |
protected static boolean |
isInTriangle(double ax,
double ay,
double bx,
double by,
double cx,
double cy,
double tx,
double ty)
Checks if a location is inside a given triangle.
|
void |
map(ij.process.ImageProcessor source,
ij.process.ImageProcessor target)
Map source into
target
|
void |
map(ij.process.ImageProcessor source,
ij.process.ImageProcessor target,
int numThreads) |
void |
mapInterpolated(ij.process.ImageProcessor source,
ij.process.ImageProcessor target)
Map source into
target using bilinear interpolation.
|
void |
mapInterpolated(ij.process.ImageProcessor source,
ij.process.ImageProcessor target,
int numThreads) |
void |
mapInverse(ij.process.ImageProcessor source,
ij.process.ImageProcessor target)
Map inversely source into
target
|
void |
mapInverse(ij.process.ImageProcessor source,
ij.process.ImageProcessor target,
int numThreads) |
void |
mapInverseInterpolated(ij.process.ImageProcessor source,
ij.process.ImageProcessor target)
Map inversely source into
target using bilinear interpolation.
|
void |
mapInverseInterpolated(ij.process.ImageProcessor source,
ij.process.ImageProcessor target,
int numThreads) |
protected static void |
mapTriangle(TransformMesh m,
AffineModel2D ai,
ij.process.ImageProcessor source,
ij.process.ImageProcessor target) |
protected static void |
mapTriangleInterpolated(TransformMesh m,
AffineModel2D ai,
ij.process.ImageProcessor source,
ij.process.ImageProcessor target) |
protected static void |
mapTriangleInverse(TransformMesh m,
AffineModel2D ai,
ij.process.ImageProcessor source,
ij.process.ImageProcessor target) |
protected static void |
mapTriangleInverseInterpolated(TransformMesh m,
AffineModel2D ai,
ij.process.ImageProcessor source,
ij.process.ImageProcessor target) |
getTransform
public TransformMeshMapping(T t)
protected static final void calculateBoundingBox(ArrayList<PointMatch> pm, double[] min, double[] max)
pm
- PointMatchesmin
- x = min[0], y = min[1]max
- x = max[0], y = max[1]protected static final boolean isInTriangle(double ax, double ay, double bx, double by, double cx, double cy, double tx, double ty)
protected static final void mapTriangle(TransformMesh m, AffineModel2D ai, ij.process.ImageProcessor source, ij.process.ImageProcessor target)
protected static final void mapTriangleInterpolated(TransformMesh m, AffineModel2D ai, ij.process.ImageProcessor source, ij.process.ImageProcessor target)
public final void map(ij.process.ImageProcessor source, ij.process.ImageProcessor target, int numThreads)
public final void map(ij.process.ImageProcessor source, ij.process.ImageProcessor target)
Mapping
map
in interface Mapping<T extends TransformMesh>
map
in class InvertibleTransformMapping<T extends TransformMesh>
public final void mapInterpolated(ij.process.ImageProcessor source, ij.process.ImageProcessor target, int numThreads)
public final void mapInterpolated(ij.process.ImageProcessor source, ij.process.ImageProcessor target)
Mapping
mapInterpolated
in interface Mapping<T extends TransformMesh>
mapInterpolated
in class InvertibleTransformMapping<T extends TransformMesh>
protected static final void calculateBoundingBoxInverse(ArrayList<PointMatch> pm, double[] min, double[] max)
pm
- PointMatchesmin
- x = min[0], y = min[1]max
- x = max[0], y = max[1]protected static final void mapTriangleInverse(TransformMesh m, AffineModel2D ai, ij.process.ImageProcessor source, ij.process.ImageProcessor target)
protected static final void mapTriangleInverseInterpolated(TransformMesh m, AffineModel2D ai, ij.process.ImageProcessor source, ij.process.ImageProcessor target)
public final void mapInverse(ij.process.ImageProcessor source, ij.process.ImageProcessor target, int numThreads)
public final void mapInverse(ij.process.ImageProcessor source, ij.process.ImageProcessor target)
InverseMapping
mapInverse
in interface InverseMapping<T extends TransformMesh>
mapInverse
in class InvertibleTransformMapping<T extends TransformMesh>
public final void mapInverseInterpolated(ij.process.ImageProcessor source, ij.process.ImageProcessor target, int numThreads)
public final void mapInverseInterpolated(ij.process.ImageProcessor source, ij.process.ImageProcessor target)
InverseMapping
mapInverseInterpolated
in interface InverseMapping<T extends TransformMesh>
mapInverseInterpolated
in class InvertibleTransformMapping<T extends TransformMesh>
Copyright © 2015–2021 Fiji. All rights reserved.