Cmd / python to detect if brain is present in scan (binary)

Hi everybody,

I have some MRI scans that include either both, spinal cord and brain images, or exclusively brain or spine. I would like to have a python or command line tool that outputs if the image contains a brain (binary decision) or not. Do you know of any tools that provide this?

Links to github repos or references to sub-functions of bigger toolbox would be greatly appreciated.

Best regards!

I don’t know if there is such tool readily available. But you may be able to code one on your own too. For example, tissue probability maps could be used (?) I am new to these things, so I don’t know much, but I’d suggest taking a look at: [FAST - FslWiki]