Skip to content

Commit

Permalink
Update smtherr model
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Feb 20, 2023
1 parent df8766c commit 9c4005f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ Moreover, `sphere_mesh` guarantees a spherical topology.
We developed a model which predicts the number of `adapt_object_mesh` smoothing iterations necessary, given a desired smoothness error threshold.
The model was created from the experiment described here:

- https://github.com/FNNDSC/voxelation-error-datalad/blob/90fd86aa2e1a280cbda6a210c802236e34b76457/README.md
- https://github.com/FNNDSC/voxelation-error-datalad/blob/90fd86aa2e1a280cbda6a210c802236e34b76457/5_notebook/taubin_vs_mean_smtherr.ipynb
- https://github.com/FNNDSC/smoothness-error-datalad/blob/94b414dc019ee236485abb8e0af646fca1219dac/5_notebook/smoothing_vs_mean_smtherr.ipynb

## Pipeline

Expand Down
6 changes: 3 additions & 3 deletions extract_cp/predict_smth.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# TODO RERUN THE MODEL USING A TIGHTER STARTING SURFACE
# modeled MAX_SMTHERR is much smaller than actuals

A = 3.63462484
H = -9.62391412
K = 0.05865665
A = 10.93738233
H = -14.53134114
K = 0.01999569


def predict_aom(current: float, target: float, max_iters: int = 200) -> int:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='extract_cp',
version='2.0.0',
version='2.0.1',
description='Fetal brain MRI CP surface extraction using CIVET marching-cubes',
author='Jennings Zhang',
author_email='Jennings.Zhang@childrens.harvard.edu',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_predict_smth.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_no_smoothing_needed():


def test_across_horizontal_asymptote():
assert predict_aom(0.30, 0.001, max_iters=99) > 90
assert predict_aom(0.30, 0.00001, max_iters=99) > 50


def test_across_vertical_asymptote():
Expand Down

0 comments on commit 9c4005f

Please sign in to comment.