public class Distortion_Correction extends Object implements ij.plugin.PlugIn
Modifier and Type | Class and Description |
---|---|
static class |
Distortion_Correction.BasicParam |
static class |
Distortion_Correction.PluginParam |
static class |
Distortion_Correction.PointMatchCollectionAndAffine |
Modifier and Type | Field and Description |
---|---|
static Distortion_Correction.BasicParam |
p |
static Distortion_Correction.PluginParam |
sp |
Constructor and Description |
---|
Distortion_Correction() |
Modifier and Type | Method and Description |
---|---|
protected String |
correctImages() |
static NonLinearTransform |
createInverseDistortionModel(Collection<Distortion_Correction.PointMatchCollectionAndAffine> pointMatches,
int dimension,
double lambda,
int imageWidth,
int imageHeight)
Estimates a polynomial distortion model for a set of
corresponding points and returns the inverse of
this model which then may be used to undo the distortion.
|
protected static NonLinearTransform |
distortionCorrection(double[][] hack1,
double[][] hack2,
double[][] transformParams,
int dimension,
double lambda,
int w,
int h) |
void |
evaluateCorrection(List<List<PointMatch>> inliers) |
protected double[] |
evaluateCorrectionXcorr(int index,
String directory) |
protected void |
extractSIFTPoints(int index,
List<Feature>[] siftFeatures,
List<List<PointMatch>> inliers,
List<AbstractAffineModel2D<?>> models) |
protected static void |
extractSIFTPointsThreaded(int index,
List<Feature>[] siftFeatures,
List<PointMatch>[] inliers,
AbstractAffineModel2D<?>[] models) |
void |
getTransform(double[][] points1,
double[][] points2,
double[][] transformParams) |
void |
run(String arg) |
public static final Distortion_Correction.BasicParam p
public static final Distortion_Correction.PluginParam sp
public void run(String arg)
run
in interface ij.plugin.PlugIn
public void evaluateCorrection(List<List<PointMatch>> inliers)
protected void extractSIFTPoints(int index, List<Feature>[] siftFeatures, List<List<PointMatch>> inliers, List<AbstractAffineModel2D<?>> models)
public static NonLinearTransform createInverseDistortionModel(Collection<Distortion_Correction.PointMatchCollectionAndAffine> pointMatches, int dimension, double lambda, int imageWidth, int imageHeight)
pointMatches
- a list of matches, plus affines that transfer each match
into a common image framedimension
- the order of the polynomial modellambda
- regularization factorimageWidth
- imageHeight
- protected static NonLinearTransform distortionCorrection(double[][] hack1, double[][] hack2, double[][] transformParams, int dimension, double lambda, int w, int h)
protected String correctImages()
protected double[] evaluateCorrectionXcorr(int index, String directory)
public void getTransform(double[][] points1, double[][] points2, double[][] transformParams)
protected static void extractSIFTPointsThreaded(int index, List<Feature>[] siftFeatures, List<PointMatch>[] inliers, AbstractAffineModel2D<?>[] models)
Copyright © 2015–2021 Fiji. All rights reserved.