Comments (7)
The 'mni' option in the write function involves resample_space, which might cause the error for statistic_image. I committed a small fix on that 8/4/15. Could you try this again and see if there is still an error?
from canlabcore.
The ‘mni’ flag was sort of a kludgy hack to get the FOV in a space for other viewers. It never worked for statistics_image() writes. Thanks Wani for fixing that. Luka and I added that awhile ago and that is something I was always meaning to fix.
On Aug 5, 2015, at 12:22 PM, Choong-Wan Woo [email protected] wrote:
The 'mni' option in the write function involves resample_space, which might cause the error for statistic_image. I committed a small fix on that 8/4/15. Could you try this again and see if there is still an error?
—
Reply to this email directly or view it on GitHub #3 (comment).
from canlabcore.
I didn't do it. Tor made a change in "resample_space" to make it work for statistic_image, but there was a small problem, which I fixed. Hopefully the 'mni' option works for statistic_image for now. I haven't tested it. Yoni will let us know and close the issue, if it works.
from canlabcore.
No, code still crashes when writing statistic_image with 'mni' flag. Here
is the error:
write(t, 'fname', 'temp.nii', 'mni')
Index exceeds matrix dimensions.
Error in image_vector/resample_space (line 88)
if ~isempty(obj.p), obj_out.p = p(Vto.wh_inmask, :); end
Error in image_vector/write (line 59)
obj = resample_space(obj,mni);
On Wed, Aug 5, 2015 at 11:23 AM, Choong-Wan Woo [email protected]
wrote:
I didn't do it. Tor made a change in "resample_space" to make it work for
statistic_image, but there was a small problem, which I fixed. Hopefully
the 'mni' option works for statistic_image for now. I haven't tested it.
Yoni will let us know and close the issue, if it works.—
Reply to this email directly or view it on GitHub
#3 (comment).
from canlabcore.
It's now working. I fixed it by converting statistic_image into fmri_data before using resample_space.
from canlabcore.
hmmm, so resample_space is broken for statistic_image?
On Aug 5, 2015, at 1:24 PM, Choong-Wan Woo [email protected] wrote:
It's now working. I fixed it by converting statistic_image into fmri_data before using resample_space.
—
Reply to this email directly or view it on GitHub #3 (comment).
from canlabcore.
Actually, you added a comment saying that "this may break if nvox (total in
image) is different for 2 images..." in line 67 a while ago, and the
function exactly break there because of that exact reason (in Yoni's case).
On Wed, Aug 5, 2015 at 4:27 PM, Tor Wager [email protected] wrote:
hmmm, so resample_space is broken for statistic_image?
On Aug 5, 2015, at 1:24 PM, Choong-Wan Woo [email protected]
wrote:It's now working. I fixed it by converting statistic_image into
fmri_data before using resample_space.—
Reply to this email directly or view it on GitHub <
https://github.com/canlab/CanlabCore/issues/3#issuecomment-128118513>.—
Reply to this email directly or view it on GitHub
#3 (comment).
Choong-Wan (Wani) Woo
Web http://wanirepo.github.io/ | Code https://github.com/wanirepo/ | Google
Scholar https://scholar.google.com/citations?user=fZLY5H8AAAAJ&hl=en&oi=ao
| Lab http://wagerlab.colorado.edu/
PhD candidate
Cognitive and Affective Neuroscience Lab
University of Colorado Boulder
from canlabcore.
Related Issues (20)
- 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
- icatb_fastICA dependency for ica
- Bug in extract_measures_batch
- movie_tools and movie_of_slice_timeseries calls deprecated avifile() function. timeseries_extract_slice returns all 0s.
- call to table() with canlab 2023 atlas shows references incorrectly
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.