ViennaLS
|
Calculate distance measure between two level sets by comparing their SDF values on a sparse field. This class iterates over the points in the sparse field of the sample level set and calculates differences with the target level set. The target level set needs to be expanded whereas the sample level set reduced to a sparse field if necessary. The code is currently intended for 2D level sets only. More...
#include <lsCompareSparseField.hpp>
Public Member Functions | |
CompareSparseField () | |
CompareSparseField (SmartPointer< Domain< T, D > > passedLevelSetTarget, SmartPointer< Domain< T, D > > passedLevelSetSample) | |
void | setLevelSetTarget (SmartPointer< Domain< T, D > > passedLevelSet) |
void | setLevelSetSample (SmartPointer< Domain< T, D > > passedLevelSet) |
void | setXRange (T minXRange, T maxXRange) |
Set the x-coordinate range to restrict the comparison area. | |
void | setYRange (T minYRange, T maxYRange) |
Set the y-coordinate range to restrict the comparison area. | |
void | clearXRange () |
Clear the x-range restriction. | |
void | clearYRange () |
Clear the y-range restriction. | |
void | setOutputMesh (SmartPointer< Mesh< T > > passedMesh) |
Set the output mesh where difference values will be stored. | |
void | apply () |
Apply the comparison and calculate the sum of squared differences. | |
T | getSumSquaredDifferences () const |
Return the sum of squared differences calculated by apply(). | |
T | getSumDifferences () const |
Return the sum of differences calculated by apply(). | |
unsigned | getNumPoints () const |
Return the number of points used in the comparison. | |
T | getRMSE () const |
Calculate the root mean square error from previously computed values. | |
Calculate distance measure between two level sets by comparing their SDF values on a sparse field. This class iterates over the points in the sparse field of the sample level set and calculates differences with the target level set. The target level set needs to be expanded whereas the sample level set reduced to a sparse field if necessary. The code is currently intended for 2D level sets only.
|
inline |
|
inline |
|
inline |
Apply the comparison and calculate the sum of squared differences.
|
inline |
Clear the x-range restriction.
|
inline |
Clear the y-range restriction.
|
inline |
Return the number of points used in the comparison.
|
inline |
Calculate the root mean square error from previously computed values.
|
inline |
Return the sum of differences calculated by apply().
|
inline |
Return the sum of squared differences calculated by apply().
|
inline |
|
inline |
|
inline |
Set the output mesh where difference values will be stored.
|
inline |
Set the x-coordinate range to restrict the comparison area.
|
inline |
Set the y-coordinate range to restrict the comparison area.