public class NonLinearCoordinateTransform extends Object implements CoordinateTransform
Modifier and Type | Field and Description |
---|---|
protected double[][] |
beta |
protected int |
dimension |
protected int |
height |
protected int |
length |
protected double[] |
normMean |
protected double[] |
normVar |
protected int |
width |
Constructor and Description |
---|
NonLinearCoordinateTransform() |
Modifier and Type | Method and Description |
---|---|
double[] |
apply(double[] location)
Apply the
CoordinateTransform to a location. |
void |
applyInPlace(double[] location)
Apply the
CoordinateTransform to a location. |
NonLinearCoordinateTransform |
copy()
TODO Make this more efficient
|
void |
init(String data)
Initialize the properties of the
CoordinateTransform
from a data string as generated by CoordinateTransform.toDataString() . |
double[] |
kernelExpand(double[] position) |
protected static double[] |
multiply(double[][] beta,
double[] featureVector) |
String |
toDataString()
Create a
String representation of the properties of the
CoordinateTransform that can be used to
re-create itself with CoordinateTransform.init(String) . |
String |
toString() |
String |
toXML(String indent)
Create an XML-export of the
CoordinateTransform
for use in TrakEM2. |
protected double[][] beta
protected double[] normMean
protected double[] normVar
protected int dimension
protected int length
protected int width
protected int height
public void init(String data) throws NumberFormatException
CoordinateTransform
CoordinateTransform
from a data string as generated by CoordinateTransform.toDataString()
.NumberFormatException
public String toXML(String indent)
CoordinateTransform
CoordinateTransform
for use in TrakEM2.public String toDataString()
CoordinateTransform
String
representation of the properties of the
CoordinateTransform
that can be used to
re-create itself with CoordinateTransform.init(String)
.public double[] apply(double[] location)
CoordinateTransform
CoordinateTransform
to a location.apply
in interface CoordinateTransform
public void applyInPlace(double[] location)
CoordinateTransform
CoordinateTransform
to a location.applyInPlace
in interface CoordinateTransform
protected static double[] multiply(double[][] beta, double[] featureVector)
public double[] kernelExpand(double[] position)
public NonLinearCoordinateTransform copy()
Copyright © 2015–2021 Fiji. All rights reserved.