Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using PerceptualColourMaps
using Images
function myimagesc(A)
x = minimum(A)
y = maximum(A)
B = (A .- x) ./ (y - x)
imgc = applycolormap(B, cmap("R3")) # outputs a 3-dimensional array
imgc2 = colorview(RGB, permuteddimsview(imgc, (3,1,2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment