nipy / mindboggle

Automated anatomical brain label/shape analysis software (+ website)
http://mindboggle.info
Other
144 stars 54 forks source link

mindboggle for gyral crown lines #84

Open iamjoostjanssen opened 7 years ago

iamjoostjanssen commented 7 years ago

Hi,

This is a request. Perhaps the fundi script can somehow be tweaked to achieve this. If anybody has pointers let me know.

Thnx

binarybottle commented 6 years ago

I believe the only two inputs to the extract_fundi() function that need to be addressed to accomplish your task are folds and depth_file.

To generate gyral crowns instead of sulci, I believe you would simply change the following line in the extract_folds() function from: indices_deep = [i for i,x in enumerate(depths) if x >= depth_threshold] to: indices_deep = [i for i,x in enumerate(depths) if x < depth_threshold]

To generate crown lines instead of fundi, you might be able to get away with simply reversing the depths (depth values) in the extract_fundi() function.

Please give it a try and report back to us!