Giter Club home page Giter Club logo

Comments (3)

danweflen avatar danweflen commented on June 7, 2024

Could you be more specific? Which function is calling removeblobs(), and what data are you using?

from canlabcore.

yonestar avatar yonestar commented on June 7, 2024

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.

torwager avatar torwager commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.