I
- Concrete subclass of Image
P
- Pixel type@Reference(type=Article, author={"Morel, Jean-Michel","Yu, Guoshen"}, title="{ASIFT: A New Framework for Fully Affine Invariant Image Comparison}", year="2009", journal="SIAM J. Img. Sci.", publisher="Society for Industrial and Applied Mathematics") public abstract class AffineSimulation<I extends Image<P,I> & SinglebandImageProcessor.Processable<Float,FImage,I>,P> extends Object
Modifier and Type | Field and Description |
---|---|
protected static float |
InitialAntiAliasingSigma |
protected static float |
PI |
Modifier and Type | Method and Description |
---|---|
protected static Point2d |
internalTransformToOriginal(Point2d pt,
int width,
int height,
float Rtheta,
float t1) |
static <I extends Image<P,I> & SinglebandImageProcessor.Processable<Float,FImage,I>,P> |
transformImage(I image,
AffineParams params)
Compute a single transformed image for a given rotation and tilt.
|
static <I extends Image<P,I> & SinglebandImageProcessor.Processable<Float,FImage,I>,P> |
transformImage(I image,
float theta,
float t)
Compute a single transformed image for a given rotation and tilt.
|
static <I extends Image<P,I> & SinglebandImageProcessor.Processable<Float,FImage,I>,P> |
transformImage(I image,
int numTilts)
Compute the transformed images based on the given number of tilts.
|
static Point2d |
transformToOriginal(Point2d pt,
Image<?,?> original,
AffineParams params)
Compute the position of a point in an image given the position in the
transformed image and the transform parameters.
|
static Point2d |
transformToOriginal(Point2d pt,
Image<?,?> original,
float theta,
float t)
Compute the position of a point in an image given the position in the
transformed image and the transform parameters.
|
static Point2d |
transformToOriginal(Point2d pt,
int width,
int height,
AffineParams params)
Compute the position of a point in an image given the position in the
transformed image and the transform parameters.
|
static Point2d |
transformToOriginal(Point2d pt,
int width,
int height,
float theta,
float t)
Compute the position of a point in an image given the position in the
transformed image and the transform parameters.
|
static <Q extends List<T>,T extends Point2d,I extends Image<?,I>> |
transformToOriginal(Q points,
I original,
float theta,
float tilt)
Transform the coordinates of the given points from a transformed image to
the original space.
|
protected static final float PI
protected static final float InitialAntiAliasingSigma
public static Point2d transformToOriginal(Point2d pt, int width, int height, float theta, float t)
pt
- the point in the transformed imagewidth
- the width of the untransformed imageheight
- the height of the untransformed imagetheta
- the rotationt
- the tiltpublic static Point2d transformToOriginal(Point2d pt, Image<?,?> original, float theta, float t)
pt
- the point in the transformed imageoriginal
- the original untransformed imagetheta
- the rotationt
- the tiltpublic static Point2d transformToOriginal(Point2d pt, int width, int height, AffineParams params)
pt
- the point in the transformed imagewidth
- the width of the untransformed imageheight
- the height of the untransformed imageparams
- the simulation parameterspublic static Point2d transformToOriginal(Point2d pt, Image<?,?> original, AffineParams params)
pt
- the point in the transformed imageoriginal
- the original untransformed imageparams
- the simulation parametersprotected static Point2d internalTransformToOriginal(Point2d pt, int width, int height, float Rtheta, float t1)
public static <Q extends List<T>,T extends Point2d,I extends Image<?,I>> void transformToOriginal(Q points, I original, float theta, float tilt)
Q
- Type of interest point listT
- Type of interest pointI
- Type of Image
points
- the pointsoriginal
- the original untransformed imagetheta
- the rotationtilt
- the tiltpublic static <I extends Image<P,I> & SinglebandImageProcessor.Processable<Float,FImage,I>,P> List<I> transformImage(I image, int numTilts)
image
- the image to transform.numTilts
- the number of tilts to simulate.IllegalArgumentException
- if the number of tilts is < 1public static <I extends Image<P,I> & SinglebandImageProcessor.Processable<Float,FImage,I>,P> I transformImage(I image, float theta, float t)
image
- the imagetheta
- the rotation anglet
- the tilt amountpublic static <I extends Image<P,I> & SinglebandImageProcessor.Processable<Float,FImage,I>,P> I transformImage(I image, AffineParams params)
image
- the imageparams
- the simulation parameters