How to convert a matrix to an RGB image using Images.jl?

@robblackwell consider using Plots.jl if your goal is only plotting a 2D matrix with a custom colormap.

using Plots

heatmap(img, cmap=:inferno)