Image Processing

JuliaImages uses the array of struct layout Array{RGB} to represent an image, thus you’ll have to construct the RGB object manually first

colorview(RGB, permutedims(Image, (3, 1, 2)))

The permutedims is to convert the memory layout from RRR...GGG...BBB-like struct of array layout to RGB...RGB-like array of struct layout. Then you can use colorview function to interpret it as an ReinterpretedArray{RGB} stuff.

1 Like