public class PerpendicularIntensityEnergy extends Object implements ExternalEnergy
Constructor and Description |
---|
PerpendicularIntensityEnergy(MeshImageStack stack,
DeformableMesh3D mesh,
double weight) |
Modifier and Type | Method and Description |
---|---|
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 PerpendicularIntensityEnergy(MeshImageStack stack, DeformableMesh3D mesh, double weight)
public void updateForces(double[] positions, double[] fx, double[] fy, double[] fz)
updateForces
in interface ExternalEnergy
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.