MeshLib
 
Loading...
Searching...
No Matches
MR::DenoiseViaNormalsSettings Struct Reference

#include <MRNormalDenoising.h>

Public Attributes

bool fastIndicatorComputation = true
 use approximated computation, which is much faster than precise solution
 
float beta = 0.01f
 0.001 - sharp edges, 0.01 - moderate edges, 0.1 - smooth edges
 
float gamma = 5.f
 the amount of smoothing: 0 - no smoothing, 1 - average smoothing, ...
 
int normalIters = 10
 the number of iterations to smooth normals and find creases; the more the better quality, but longer computation
 
int pointIters = 20
 the number of iterations to update vertex coordinates from found normals; the more the better quality, but longer computation
 
float guideWeight = 1
 how much resulting points must be attracted to initial points (e.g. to avoid general shrinkage), must be > 0
 
bool limitNearInitial = false
 if true then maximal displacement of each point during denoising will be limited
 
float maxInitialDist = 0
 maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false
 
UndirectedEdgeBitSet * outCreases = nullptr
 optionally returns creases found during smoothing
 
ProgressCallback cb = {}
 to get the progress and optionally cancel
 

Member Data Documentation

◆ beta

float MR::DenoiseViaNormalsSettings::beta = 0.01f

0.001 - sharp edges, 0.01 - moderate edges, 0.1 - smooth edges

◆ cb

ProgressCallback MR::DenoiseViaNormalsSettings::cb = {}

to get the progress and optionally cancel

◆ fastIndicatorComputation

bool MR::DenoiseViaNormalsSettings::fastIndicatorComputation = true

use approximated computation, which is much faster than precise solution

◆ gamma

float MR::DenoiseViaNormalsSettings::gamma = 5.f

the amount of smoothing: 0 - no smoothing, 1 - average smoothing, ...

◆ guideWeight

float MR::DenoiseViaNormalsSettings::guideWeight = 1

how much resulting points must be attracted to initial points (e.g. to avoid general shrinkage), must be > 0

◆ limitNearInitial

bool MR::DenoiseViaNormalsSettings::limitNearInitial = false

if true then maximal displacement of each point during denoising will be limited

◆ maxInitialDist

float MR::DenoiseViaNormalsSettings::maxInitialDist = 0

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false

◆ normalIters

int MR::DenoiseViaNormalsSettings::normalIters = 10

the number of iterations to smooth normals and find creases; the more the better quality, but longer computation

◆ outCreases

UndirectedEdgeBitSet* MR::DenoiseViaNormalsSettings::outCreases = nullptr

optionally returns creases found during smoothing

◆ pointIters

int MR::DenoiseViaNormalsSettings::pointIters = 20

the number of iterations to update vertex coordinates from found normals; the more the better quality, but longer computation


The documentation for this struct was generated from the following file: