Look-up Tables
WARNING
ome-zarr.js is not yet stable and the API may change in patch releases.
Over 40 LUTs are included in ome-zarr.js
. Each lut.png
is a png of 256 x 1
pixels. Below these are displayed with a height of 15px
:
js
omezarr.getLuts().forEach((lut) => {
let html = `<legend>${lut.name}</legend> <img src="${lut.png}" />`;
document.getElementById("luts").innerHTML += html;
});
To renderImage()
with a LUT, we can set the lut
attribute of omero.channels
:
js
omero.channels[0].lut = "fire.lut";
let src = await omezarr.renderImage(arr, multiscale.axes, omero);
Click on a LUT below to re-render the image:
Image is from idr0062-blin-nuclearsegmentation.