Closed rastogi-bhavya closed 3 years ago
The change is color is handled by a OSD library called OpenSeadragonFiltering (https://github.com/usnistgov/OpenSeadragonFiltering).
The new channels values (filter in terms of the library) are passed to the setItemChannel
, which updates the values stored in the channels
object and calls the setFilterOptions
of the library to update the channels values shown in the OSD.
The reason the Hue is not visible for some channels is because the name of the channel is not proper i.e. they have '_' in the name instead of space eg 'Alexa_Fluor_488' instead of 'Alexa Fluor 488'
This describe the process used to convert RGB -> HSL, and the function _rgb2hsl
returns [h, s, l]
https://stackoverflow.com/questions/23090019/fastest-formula-to-get-hue-from-rgb
What we will likely do is to have a default hue by mapping from channel-name (or number if name is not available) to a present hue (color), and use that for rendering.
Add https://dev.rebuildingakidney.org/chaise/record/#2/Gene_Expression:Image/RID=14-47YP to regression testing