Convert Packed Image Format into Planar Format without Dependency

I fail to see the difficulty so I guess I’m missing something. Do you want something significantly different from this?

x = rand(RGB{N0f16}, 4, 5)
y = permutedims(reinterpret(reshape, UInt16, x), (2, 3, 1))
1 Like