Reply To: Extraction of single anatomical Surfaces

Forums Forums Surface and Volume Registration (SVReg) Extraction of single anatomical Surfaces Reply To: Extraction of single anatomical Surfaces

#1176
Anand Joshi
Moderator

Hi Louise, For some reason, I can’t see the image you posted.
You can smooth the surface in matlab using svreg code.
First, save the surface as a dfs file using BrainSuite.
1. Generate the surface in BrainSuite
2. Goto Surface->Surface Display properties, select the surface that you want to save and press save button under the surface properties bar.
3. Download svreg source code from downloads section on BrainSuite website. Add path to the code in matlab.

s=readdfs(surfacefile);
sm=smooth_cortex_fast(s,.1,1000);
view_patch(sm);

You can also save it back to dfs file using writedfs function.

Additionally, you can compute vertexwise curvature using patchcurvature function available here:
https://www.mathworks.com/matlabcentral/fileexchange/32573-patch-curvature