public class DeltaApproxHelper extends Object
The approximations used here are implemented according to
Chan and Vese, "An Active Contour Model without Edges", Scale-Space '99, LNCS 1682, pp. 141-151, Springer 1999.
Refer to DeltaApproxHelper.ApproxVersion for details about the
available approximations.
| Modifier and Type | Class and Description |
|---|---|
static class |
DeltaApproxHelper.ApproxVersion
Available approximations for the Heaviside function and its derivatives.
|
| Modifier and Type | Field and Description |
|---|---|
private double |
epsilon
Epsilon value to configure scale to use.
|
private DeltaApproxHelper.ApproxVersion |
version
Type of approximating function to use.
|
| Constructor and Description |
|---|
DeltaApproxHelper(double eps,
DeltaApproxHelper.ApproxVersion v)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private double |
dirac_v1(double z)
Implements version 1 of approximation.
|
private double |
dirac_v2(double z)
Implements version 2 of approximation.
|
double |
getValue(double z)
Calculate approximated value for given parameter value.
|
private double epsilon
private DeltaApproxHelper.ApproxVersion version
public DeltaApproxHelper(double eps,
DeltaApproxHelper.ApproxVersion v)
eps - Value for approximation scale parameter.v - Function version to be used for approximation.public double getValue(double z)
z - Value for which to calculate function value.private double dirac_v1(double z)
z - Value for which to calculate function value.private double dirac_v2(double z)
z - Value for which to calculate function value.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.