dgutman / osdAutoRegistration

An OpenSeadragon based viewer that leverages OpenCV Js to Register Two Images
0 stars 2 forks source link

Background transparency filter #2

Closed pearcetm closed 1 year ago

pearcetm commented 1 year ago

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.