This adds a custom filter to the openseadragon-filtering.js plugin that makes "glass" transparent, leaving only the tissue area opaque. The glass color is calculated as the median color of the edge pixels of the thumbnail image, and pixels within a small range of that color are considered "glass" and the alpha channel is set to a low number.
An opacity slider control at the top of the page adjusts the tissue opacity of the top image (only when viewers are stacked).
This is useful for better visualization of the registration of tissue between viewers.
This adds a custom filter to the openseadragon-filtering.js plugin that makes "glass" transparent, leaving only the tissue area opaque. The glass color is calculated as the median color of the edge pixels of the thumbnail image, and pixels within a small range of that color are considered "glass" and the alpha channel is set to a low number.
An opacity slider control at the top of the page adjusts the tissue opacity of the top image (only when viewers are stacked).
This is useful for better visualization of the registration of tissue between viewers.