Skip to content

RePAIRProject/AAFR

Repository files navigation

Foobar

Foobar is a Python library for dealing with word pluralization.

Usage

from helper import FeatureLines

# returns 'Object after the downsampling specified'
Obj1 = FeatureLines("data/group19/fragment.ply",voxel_size=0.1)

# calculates all penalty functions after creating the graph where N = 16 (nearest neighbor)
Obj1.init(16)

# set the parameters as specified in the paper 
# alpha, gamma,crease_threshold, and border_threshold and pattern_length_threshold 
# pattern_length_T is set by default to half sqrt of the number of nodes
Obj1.set_params(alpha=0.2,gamma=0.5,crease_threshold=1.7,border_threshold=2)

Penalties calculated

w_k : curvature estimate for each node (one value per node)

w_cr_v : vector valued penalty on how well the eigenvalues fit to the crease ( 3D vector value per node )

w_b1 : vector valued border penalty function ( 3D vector value per node )

w_b2 : probability of being border point ( one value per node )

w_co : The corner penalty function ( one value per node )

Show Results

data = Obj1.w_k
Obj1.show_heat(data)

alt text

data = Obj1.w_cr_v 
Obj1.show_heat(data)

alt text

data = Obj1.w_b1
Obj1.show_heat(data)

alt text

data = Obj1.w_b2
Obj1.show_heat(data)

alt text

data = Obj1.w_co
Obj1.show_heat(data)

alt text