OpenCV:ColorMaps
lastmod 2026-11-10created 2023-01-122 edits
OpenCV's ColorMaps (colormaps) is a feature that maps the brightness values of a single-channel grayscale image to colors to make it easier to read. Passing a predefined colormap such as COLORMAP_JET, COLORMAP_VIRIDIS, or COLORMAP_HOT to the applyColorMap() function converts an 8-bit input into a 3-channel BGR image. It is used to visualize depth maps, heatmaps, thermal images, and the like, and a user-defined lookup table can also be passed.