public class CubicBSplineTransform extends AbstractModel<CubicBSplineTransform> implements CoordinateTransform
cost, rnd| Constructor and Description |
|---|
CubicBSplineTransform()
Empty constructor
|
CubicBSplineTransform(int intervals,
BSplineModel swx,
BSplineModel swy,
int width,
int height)
Cubic B-spline transform constructor
|
CubicBSplineTransform(int intervals,
double[][] cx,
double[][] cy,
int width,
int height)
Cubic B-spline transform constructor
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
apply(double[] l) |
void |
applyInPlace(double[] l) |
CubicBSplineTransform |
copy()
Clone method
|
<P extends PointMatch> |
fit(Collection<P> matches) |
int |
getMinNumMatches() |
void |
init(String dataString)
Initialize cubic B-spline transform from the parameters of a string
|
void |
scale(double xScale,
double yScale) |
void |
set(CubicBSplineTransform m) |
void |
set(int intervals,
BSplineModel swx,
BSplineModel swy,
int width,
int height)
Set cubic B-spline transform values
|
void |
set(int intervals,
double[][] cx,
double[][] cy,
int width,
int height)
Set cubic B-spline transform constructor
|
void |
set(Param p,
int sourceWidth,
int sourceHeight,
int targetWidth,
int targetHeight) |
String |
toDataString()
Save cubic B-spline transform information into String
|
String |
toString() |
String |
toXML(String indent) |
betterThan, filter, filter, filter, filterRansac, filterRansac, filterRansac, filterRansac, fit, fit, getCost, icp, localSmoothnessFilter, ransac, ransac, setCost, test, testpublic CubicBSplineTransform()
public CubicBSplineTransform(int intervals,
double[][] cx,
double[][] cy,
int width,
int height)
intervals - intervals between B-spline coefficientscx - B-spline coefficients for transformation in the x axiscy - B-spline coefficients for transformation in the y axiswidth - width of the target imageheight - height of the target imagepublic CubicBSplineTransform(int intervals,
BSplineModel swx,
BSplineModel swy,
int width,
int height)
intervals - intervals between B-spline coefficientsswx - B-spline model for transformation in the x axisswy - B-spline model for transformation in the y axiswidth - width of the target imageheight - height of the target imagepublic void set(int intervals,
BSplineModel swx,
BSplineModel swy,
int width,
int height)
intervals - intervals between B-spline coefficientsswx - B-spline model for transformation in the x axisswy - B-spline model for transformation in the y axiswidth - width of the target imageheight - height of the target imagepublic void set(int intervals,
double[][] cx,
double[][] cy,
int width,
int height)
intervals - intervals between B-spline coefficientscx - B-spline coefficients for transformation in the x axiscy - B-spline coefficients for transformation in the y axiswidth - width of the target imageheight - height of the target imagepublic double[] apply(double[] l)
apply in interface CoordinateTransformpublic void applyInPlace(double[] l)
applyInPlace in interface CoordinateTransformpublic void init(String dataString) throws NumberFormatException
dataString - basic cubic B-spline transform parametersNumberFormatExceptionpublic String toDataString()
public final CubicBSplineTransform copy()
copy in interface Model<CubicBSplineTransform>public <P extends PointMatch> void fit(Collection<P> matches) throws NotEnoughDataPointsException, IllDefinedDataPointsException
fit in interface Model<CubicBSplineTransform>NotEnoughDataPointsExceptionIllDefinedDataPointsExceptionpublic void scale(double xScale,
double yScale)
public void set(Param p, int sourceWidth, int sourceHeight, int targetWidth, int targetHeight)
public int getMinNumMatches()
getMinNumMatches in interface Model<CubicBSplineTransform>public void set(CubicBSplineTransform m)
set in interface Model<CubicBSplineTransform>Copyright © 2005–2024 Fiji. All rights reserved.