Closed jordandekraker closed 1 year ago
This is working well new as long as depths are relatively low.
Greater depths will require more iterations from laplace_surf_interp.py
, but running only with a few iterations for test cases highlight an issue:
Green is the original surface, yellow orange and red are 0.1, 0.2, and 0.3 fractions inward surfaces. The red surface leaves little "sticks" up in gyri, which will eventually get pushed down with added iterations but the vertices below these "sticks" will be all bunched up together. I think this is still the best behaviour, since shifting all other vertices to accommodate equal face sizes would throw off the vertex-correspondence to the original surface. I just wanted to leave a note about it though.
Also @rcruces have a look at:
native surface
nii.gz
from maps
directory for all surfaces.laplace_solver.py
I changed the labels being used as source and sink such that the foreground (fg) is white matter only and the sink is just everything else. I thought this would be best, since now the "inner" border of white matter is actually where it ends. Other than those, i think we're good to go here! keep me posted if anything looks funny
made the basic functions to 1) solve a Laplace field and 2) translate surfaces inward along that field (maintining vertex correspondence)
TODO: