I have 3 images, each a separate channel of the same sample.
c1 = rand(100,100)
c2 = rand(100,100)
c3 = rand(100,100)
I’d like to make a custom color gradient for each channel:
using Plots
pal = palette(:batlow,3)
grad1 = cgrad([:black, pal[1]])
grad2 = cgrad([:black,pal[2]])
grad3 = cgrad([:black,pal[3]])
and plot them each separately and together in a composite image:
fig = plot(layout = grid(1,4),
size=(2000,500),
legend=false,
colorbar=false,
xticks=[],
yticks=[],
aspect_ratio=:equal,
margin=5mm)
heatmap!(fig[1], c1, color=grad1)
heatmap!(fig[2], c2, color=grad2)
heatmap!(fig[3], c3, color=grad3)
But I’m not sure how to combine the channels to make the colored composite. Any tips?