Skip to content

Instantly share code, notes, and snippets.

@lastlegion
Last active June 23, 2016 21:38
Show Gist options
  • Save lastlegion/b4d60325ee1becf30dfeb5ca6894f49a to your computer and use it in GitHub Desktop.
Save lastlegion/b4d60325ee1becf30dfeb5ca6894f49a to your computer and use it in GitHub Desktop.
caMicroscope image ROI Logical to physical coordinates
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