convert_OD2RGB¶
- convert_OD2RGB(OD)[source]¶
Convert from optical density (OD_RGB) to RGB. RGB = 255 * exp(-1*OD_RGB)
- Parameters
OD (
numpy.ndarray) – Optical denisty RGB image- Returns
Image RGB
- Return type
Examples
>>> from tiatoolbox.utils import transforms >>> # od_img: optical density image >>> rgb_img = transforms.convert_OD2RGB(od_img)