You need to convert to colors first. Images.jl has a convenience function colorview for that. See Quickstart · JuliaImages
Note that Y here, doesn’t make a copy of X, but merely reinterprets the original array as colors.
Jupyter, Pluto and VSCode know how to display colors:
Edit: Sorry, I’ve missed that you were already using colorview in your code. The point is that you need to provide a number format for RGB, in this case N0f8 is appropriate.
It’s not clear to me if you want it displayed as an image or as a numerical array. If as image, se previous post, if as numerical array, you can just convert to Int by typing
The h5 file come from python code and I translate to julia. The dimension order in julia (3, 64, 64) a lil bit different to numpy array (64, 64, 3), I don’t know why Images.jl choose this, but now I learned about permutedims so it’s ok.