Comments (6)
Are you sure about this? If you select the functional data in the Volume Viewer demo, you'll see that the steps aren't equal (they're about 2.1:1). For the structural data, it is 1:1, but that's just because that dataset has steps of 1.
@cmadjar care to comment?
from brainbrowser.
The voxel coordinates displayed are the actual coordinates of the Brain Browser pixels and not the voxels of the minc file.
To get the minc voxel coordinates you will need to take into account direction_cosines. See info at: http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_File_Format_Reference
from brainbrowser.
It looks like this requires two steps:
- The direction_cosines attribute should be extracted for each dimension from the minc headers in minc2volume-viewer.js.
- The cosines should be applied in the voxel coordinate conversion in getWorldCoordinates().
from brainbrowser.
@pinelopakik, I'm a little confused by the matrix multiplication shown in the MINC reference you posted a link to. It seems all the matrices are transposed for some reason. If this is the case, that's no problem, but can you verify this with Louis? As a concrete example, can you ask him if the following would be the correct way to calculate the world x coordinate:
wx = vx * stepx * cxx + vy * stepx * cxy + vz * stepx * cxz + ox
from brainbrowser.
@pinelopakik, I created the following two matrices, based on the link you sent. Can you verify that they're correct? Also, I found another site giving a different matrix for the conversion. It seems to be older, but the matrix is actually written correctly. Can you make sure that the one we're using is correct?
EDIT: THE BELOW MATRICES ARE INCORRECT
from brainbrowser.
The original link an above matrices are incorrect. The correct conversion can be found here: http://www.bic.mni.mcgill.ca/software/minc/minc2_format/node4.html
from brainbrowser.
Related Issues (20)
- Added non-passive event listener to a scroll-blocking 'touchstart' event.
- How can I paint or show each of the 14 areas that the brain has. HOT 1
- Memory leaks HOT 5
- Update NPM With Newest Version HOT 6
- Type error d not defined in loadModelFromFile HOT 1
- Volume viewer question - is it possible to manually set cursor position based on intensity value ?
- Two MNI .obj Surfaces in the Same Space HOT 3
- Displaying NIfTI data with SurfaceViewer HOT 1
- Mask overlay on top of an Nifti volume HOT 1
- Embedding BrainBrowser in a Vue.js project
- Getting wireframe superimposed ?
- Deleted
- Using compressed files with viewer.loadVolumes HOT 1
- How to change to radiological conventions HOT 3
- Load Volume from binary file? HOT 1
- How do i get mouse point use vertex_data ? HOT 2
- What is the format of the color-map file?
- Is there a way to convert mgh data format to per vertex file?
- Can you tell us how .nii file parsing works? Or is there any documentation?
- Running error, could you please help me check it
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 brainbrowser.