public class PerpendicularGradientEnergy extends Object implements ExternalEnergy
Constructor and Description |
---|
PerpendicularGradientEnergy(MeshImageStack stack,
DeformableMesh3D mesh,
double weight) |
Modifier and Type | Method and Description |
---|---|
double |
getChangeMagnitude(double x,
double y,
double z,
double[] direction) |
double |
getChangeSquared(double x,
double y,
double z,
double[] direction) |
double |
getEnergy(double[] pos) |
double |
getForce(double x,
double y,
double z,
double[] direction) |
double |
getNormal(Integer i,
double[] result) |
void |
updateForces(double[] positions,
double[] fx,
double[] fy,
double[] fz) |
public PerpendicularGradientEnergy(MeshImageStack stack, DeformableMesh3D mesh, double weight)
public void updateForces(double[] positions, double[] fx, double[] fy, double[] fz)
updateForces
in interface ExternalEnergy
public double getChangeSquared(double x, double y, double z, double[] direction)
public double getChangeMagnitude(double x, double y, double z, double[] direction)
public double getForce(double x, double y, double z, double[] direction)
public double getNormal(Integer i, double[] result)
public double getEnergy(double[] pos)
getEnergy
in interface ExternalEnergy
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.