Comments (2)
(1) is it intended to start expanding in only 1 ROI and continuing in the second one?
Nope.
It starts in one ROI and the sphere will keep growing till it reaches a certain number of voxels. So if there is not enough voxels in the first ROI then the sphere will keep growing and will inevitably include stuff anywhere in the brain: including things on the other side of the brain.
(2) I guess that the 3rd spot in the inferior part is there by mistake.
Well depends what you mean by "mistake". It definitely should not be there. But I suspect that those voxels are part of the the original mask you provided.
Also, Have you tried to save each ROI across the expansion iteration? It seems that at some point in the process it stops expanding and starts again towards the end.
Not tried that specifically.
In this case I suspect, this happens because the sphere as to keep growing to get to the other side of the brain.
What we could do is make the function more verbose and spit out the radius and number of voxel included on each iteration. Might give some clue to to the user as to what is going on or if you are in a situation you can't get out of (a sphere that keep expanding forever - actually the function should stop after a certain sphere radius because brains of 2 meters do not exist).
from cpp_roi.
In your case I would make sure that initial mask you use has more voxels around each ROI (use a lower voxels threshold).
from cpp_roi.
Related Issues (20)
- [BUG] (solution provided!) HCPex atlas does not produce Left V1 ROI due to wrong LUT reading in `getLookUpTable.m` HOT 3
- [BUG] Parallel toolbox + `bidspm` initialization messing up
- [INFRA] make sure tests can run in CI
- [REFACTOR] replace the renameFile function with the bids.File.rename method
- [BUG] expand roi fails HOT 2
- createRoi: ensure that image defining space and mask have the same resolution
- createROI: ensure that the mask image is binary mask
- renameNeuroSynth: make sure that the input image as a neurosynth name
- bump anatomical toolbox version version HOT 1
- Add support for neuroparc
- Simplify saving ROI as .nii in createRoi HOT 1
- [ENH] Add HCPex atlas from Huang et al. 2022 (MT vs MST)
- change copyright format and update miss hit version
- add marsbar as a submodule
- Use spm batch imcalc to create rois
- [BUG] Typo in line 7 (visfAtlas instead of visfatlas) HOT 2
- add marsbar citation
- atlas from Anatomy toolbox v3.0 doesn't work well with cpp_roi HOT 2
- add CI to run tests in CI with windows and macos
- [ENH] : include Glasser Atlas for ROI creation HOT 7
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 cpp_roi.