khanlab / hippunfold

BIDS App for Hippunfold (automated hippocampal unfolding and subfield segmentation)
https://hippunfold.readthedocs.io
MIT License
47 stars 12 forks source link

curvature was producing a few outlier extreme values #242

Closed jordandekraker closed 11 months ago

jordandekraker commented 12 months ago

It looks like this was mainly caused by smoothing before calculating curvature https://github.com/khanlab/hippunfold/blob/ef99cc250a975ee3132966af61ed619673be3238/hippunfold/workflow/rules/gifti.smk#L349 Apparently wb_command doesn't handle smoothing of an open-faced surface well:

image

This was not an issue for my unsmoothed surfaces. I'm removing the smoothing, but because there still could be extreme values (eg. from aced vertex), i'm also normalizing with a tanh function.