Giter VIP home page Giter VIP logo

Comments (6)

tsherif avatar tsherif commented on August 17, 2024

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.

pinelopakik avatar pinelopakik commented on August 17, 2024

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.

tsherif avatar tsherif commented on August 17, 2024

It looks like this requires two steps:

  1. The direction_cosines attribute should be extracted for each dimension from the minc headers in minc2volume-viewer.js.
  2. The cosines should be applied in the voxel coordinate conversion in getWorldCoordinates().

from brainbrowser.

tsherif avatar tsherif commented on August 17, 2024

@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.

tsherif avatar tsherif commented on August 17, 2024

@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

minc-matrices

from brainbrowser.

tsherif avatar tsherif commented on August 17, 2024

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)

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.