question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Working with probabilistic atlas

See original GitHub issue

I tried to use Brain_Data to load a mask based on DiFuMo atlas (https://parietal-inria.github.io/DiFuMo/) Using the standard method (loading mask with Brain_Data and using expand_mask) doesn’t work. When looking at the loaded atlas, I find that it is already loaded as expanded. But then, trying to use roi_to_brain doesn’t work as well.

a = nilearn.datasets.fetch_atlas_difumo(dimension=256)
mask = Brain_Data(a.maps)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
orduekcommented, Apr 15, 2021

Sounds good. I’ll have a go at it and let you know once I stumble into some issues.

1reaction
ljchangcommented, Apr 14, 2021

Hi @orduek, most of our mask functions are not designed to work with probabilistic masks, only binary ones. It’s easy to convert to binary using the dat.threshold() method. However, without knowing any of the details of those images, finding an appropriate threshold might be tricky with that particular mask.

Here is an example for how to binarize a single map, mask[0].threshold(upper=.0001, binarize=True), or all of them if you can use the same threshold mask_bin = mask.threshold(upper=.0001, binarize=True)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Probabilistic Atlas - an overview | ScienceDirect Topics
The probabilistic atlas-based methodology was introduced for effective breast segmentation by Gubern-Merida et al. [24]. Nonetheless, accuracy is considered ...
Read more >
Probabilistic atlas for the language network based on ... - Nature
This atlas enables estimating the probability that any given location in a common space belongs to the language network, and thus can help ......
Read more >
Construction of a 3D Probabilistic Atlas of Human Cortical ...
The atlases can be used to assign structure probabilities to new images by aligning the images and the atlas. Ideally, the registration methods ......
Read more >
ICBM Probabilistic Atlases - UCLA Brain Mapping Center
Each delineation was averaged and used to create a probability map for the structure of interest in the atlas space. The probability maps...
Read more >
A Probabilistic Atlas of Human Visual Areas and Information
We demonstrate that the entropy map provides distinctly different information from the probability map, highlighting the significance of the entropy map. The ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found