Last active
June 23, 2016 21:38
-
-
Save lastlegion/b4d60325ee1becf30dfeb5ca6894f49a to your computer and use it in GitHub Desktop.
caMicroscope image ROI Logical to physical coordinates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bounds = viewer.viewport.getBounds() | |
var imageCoordinates = viewer.viewport.viewportToImageRectangle(bounds.x, bounds.y, bounds.width, bounds.height) | |
/* | |
* Use | |
* imageCoordinates.x | |
* imageCoordinates.y and so on | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment