Comments (3)
Could you be more specific? Which function is calling removeblobs(), and what data are you using?
from canlabcore.
Upon some further examination, I believe this is because the blobs that get plotted on surfaces are not being correctly added to the fmridisplay object, and since they are not correctly added, they cannot be removed. One way to reproduce the bug:
o1 = canlab_results_fmridisplay([], 'montage_type', 'full', 'overlay', underlay); o1 = multi_threshold(some statistic_image you loaded in, 'o2', o1, 'thresh', [.001 .005], 'sizethresh', [10 1]); o1 = removeblobs(o1);
And note that the blobs on the surface montages are not removed.
I believe the bug is actually somewhere in the addblobs
functions. Specifically, on line 395 of addblobs
I think the cluster_surf
command needs to add the surface blobs back to obj.activation_maps{wh_to_display}.blobhandles
from canlabcore.
Ok, this is because blobs are added to surfaces in a very different way - they are not handles ... it actually colors the surface vertices. removeblobs has not yet been extended to handle this. the way to do it is to find surface handles and re-set the vertex colors to gray for those surfaces. There is a function to do this, I think referenced in addbrain.m (or a subfunction within addbrain.m). removeblobs would then check for surface handles stored/registered in the fmridisplay object, and re-set vertex colors for each of those surface objects.
from canlabcore.
Related Issues (20)
- https://canlab.github.io/CanlabCore/ link from repo description is dead
- "addbrain surface left"/"right" resources not found
- bug in image_vector.resample_space -- will sometimes shift images in axial plane
- glmfit_multilevel.m error
- glmfit_multilevel - Error with basic example given in help section of code
- undefined function: canlab_spm_fmri_model_job
- onsets2fmridesign: error in script due to changes in Matlab HOT 1
- EXPT_setup_tools
- labeling errors on CANlab_combined_atlas_object_2018_2mm.mat
- merge_atlases does not remove overlapping regions
- Mediation Toolbox
- canlab_glm_subject_levels not assigning noise_regs to correct runs if runs are missing HOT 2
- legend function with statistic_image objects
- Severe issue with apply_mask when applying multiple masks, e.g. pain_cog_emo
- Loading firstlevel zmaps into a dataobj using fmri data HOT 1
- Unequal length of variables in Mediation
- Load_atlas not found HOT 1
- Legend for Wager Combined atlas FSL HOT 2
- optimizeGA calculation of break period insertion?
- Region labels disappear after atlas2region() for certain regions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canlabcore.