Comments (3)
I think that this is not an issue. Currently, I am looking into some mesh generation business (noticing some unexpected behaviour in (possibly) the location/visualization of meshes relative to the anatomical from which they were derived. Specifically, using different mesh-methods, they seem to be differentely offset with respect to one another, and/or with respect to the co-visualized volume (using ft_plot_ortho), where there seems to be an interaction with the voxel resolution. Strange.
Anyway, in the above example, I'd assume that you intended the origin to be exactly in the middle of the volume (i.e. at a corner point of the voxels, rather than in the center of one of them), right?
In that case, the proper transformation matrix would be inv([eye(3) mri.dim(:)./2; 0 0 0 1]);
This gives the crosshair in the middle.
@KristijanArmeni this is related to the mesh generation business I was talking about earlier.
from fieldtrip.
Sorry, I forgot the +1
mri.unit = 'cm';
mri.dim = [2 2 2];
mri.anatomy = ones(2,2,2);
mri.transform = inv([eye(3) (mri.dim(:)+1)./2; 0 0 0 1]);
ft_determine_coordsys(mri);
from fieldtrip.
With respect to the 'unexpected behavior', it seems fine after all, but the discrepancy results from the way that ft_plot_slice does a (default) interpolation to a 1mm resolution, using a default interpmethod of 'nearest'. This leads to apparent shifts of the volume when it's binary.
from fieldtrip.
Related Issues (20)
- function ft_singleplotTFR output HOT 1
- Document and implement OPM coregistration on basis of only Polhemus 3D tracker. HOT 4
- deal with FieldLine smart helmet sensor localization errors HOT 3
- Problem with importing MEG datasets ds003352 & ds003922 with File-IO HOT 8
- Maxfilter issue when importing MEG datasets ds004276 & ds004483 with File-IO HOT 5
- Deal with FieldLine v3 recordings in which the sensor localization was not successful and the channel names are not unique. HOT 1
- Fieldtrip-SimBio pipeline on macOS with Apple silicon - calc_stiff_matrix_val.mexmaca64 is missing HOT 5
- FIF import issue HOT 2
- CTF data in BIDS format results in inconsistent channel names HOT 11
- Consider reducing the .git history size by removing large binary blobs HOT 1
- Iso2Mesh External Toolbox missing cork.exe HOT 2
- The `ft_read_event` function doesn't work for '.nirs' files due to a repeat key-value pair in function code. HOT 1
- Inconsistency between stat.mask and p-values in ft_freqstatistics HOT 2
- Inconsistency between stat.mask and p-values in ft_freqstatistics HOT 5
- Source localization now require optimization toolbox HOT 4
- ft_selectdata failure HOT 4
- Beamforming oscillatory responses in combined MEG/EEG data HOT 3
- Dipole fitting of combined MEG/EEG data
- EEG inverse mode; HOT 3
- ft_rejectvisual failure HOT 1
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 fieldtrip.