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))) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment