I have two matrices MRI scans of completely different sizes (141x172x110 and 176x208x176). I need to map the larger matrix B to the smaller one A. The values of matrix A are regions of a brain - an atlas, and the values of matrix B are the type of brain matter. I need to figure out from which region of the brain each index in B comes. Each index is a 1mm square area of space in both matrices. Each matrix is centered at the middle index in each matrix (median of each dimension), so overlaying the two matrices will create some overlap with boundaries of each index. I imagine some solution like Euclidean distance or majority vote is feasible, but not sure where to begin. Any ideas?
Asked
Active
Viewed 96 times
1
-
Think you need to clarify a bit, here. You must have some registration information between the two matrices, right? And you want to find (say) the cell from A which is nearest to a given cell in B, for all cells in B? So the actual content of A and B does not need to be manipulated? Also, how do you want to handle out-of-sample data (B being larger than A)? Do the two matrices share a coordinate system? Are their dimensions parallel (e.g. are they both represented in standard stereotaxic coordinates?)? Bit more info, and there are straightforward solutions to this type of problem. – Rattus Ex Machina May 12 '15 at 11:25