aces / brainbrowser

Web-based visualization tools for neurological data.
https://brainbrowser.cbrain.mcgill.ca/
GNU Affero General Public License v3.0
352 stars 124 forks source link

Oops, the overlay registration broke the zooming of the overlay. #269

Closed rdvincent closed 9 years ago

rdvincent commented 9 years ago

This makes it work again.

To explain, the code in my prior commits will not honor zooming at all, because it does not adjust the coordinates appropriately. This modification simply scales the world coordinates by the zoom factor before converting them to voxel coordinates.

I also realized that I am not getting a true field of view for the images, so the overlay is sometimes cropped in an unexpected way. I need to figure out a good fix for this.