berkeley-stat159 / project-theta

BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

mapping from millmeter coordinate to voxel coordinates #109

Closed changsiyao closed 8 years ago

changsiyao commented 8 years ago

What should we do when we don't get integer voxel coordinates. Do you round the coordinates to integers? For example, in our paper, the mm coordinate is (3.6, 6.3, 3.9), when we turn it into voxel coordinate, it is (43.2, 66.15, 37.95).

Thanks! @matthew-brett @jarrodmillman @rossbar

matthew-brett commented 8 years ago

Could you say a little more about what you are intending to do with the coordinate value?

If you just want to get an approximate voxel coordinate to get the voxel closest to the corresponding mm coordinate, then rounding is the right thing to do.

changsiyao commented 8 years ago

In our paper, the authors looked at a part of the brain with the mm coordinate (3.6, 6.3, 3.9). We want to look at the same part of the brain. We want to compare the beta values of the neural regression for that part of the brain with the beta values of the behavior regression.

matthew-brett commented 8 years ago

In that case it would be reasonable to round the voxel coordinates - that would give you the nearest voxel corresponding to their mm coordinate.

matthew-brett commented 8 years ago

OK to close this one?

changsiyao commented 8 years ago

Thank you!